Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongodb does not compile without the dns-resolver feature enabled in the latest crates.io release. #1298

Closed
the10thWiz opened this issue Feb 2, 2025 · 2 comments
Assignees

Comments

@the10thWiz
Copy link

the10thWiz commented Feb 2, 2025

Versions/Environment

  1. rustc 1.84.1 (e71f9a9a9 2025-01-27)
  2. Ubuntu 22.04.5 LTS, inside WSL
  3. registry+https://github.com/rust-lang/crates.io-index#[email protected]
    registry+https://github.com/rust-lang/crates.io-index#[email protected]

The bug

The crate does not compile without the dns-resolver feature enabled, on version 3.2.0 and version 3.1.1.

Reproduction steps

  1. Checkout v3.2.0
  2. $ cargo build --no-default-features --features rustls-tls,compat-3-0-0

Alt steps:

  1. Create empty crate
  2. Add mongodb = { version = "3", default-features = false, features = ["rustls-tls", "compat-3-0-0"] } to Cargo.toml

(Edit: removed solution, since it doesn't actually fix issue)

@the10thWiz
Copy link
Author

One minor update - it appears to compile on master.

Additionally, I have confirmed this issue also affects another of my systems.

  • OS: Void Linux
  • Rust version: rustc 1.81.0 (eeb90cda1 2024-09-04)
  • mongodb version: v3.2.0

@abr-egn
Copy link
Contributor

abr-egn commented Feb 3, 2025

Thanks for the report! As you've noticed, this is fixed at head, and we'll be releasing 3.2.1 in the near future including this fix.

@abr-egn abr-egn closed this as completed Feb 3, 2025
@abr-egn abr-egn removed the triage label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants