Skip to content

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

@the10thWiz

Description

@the10thWiz

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions