`brotli` feature doesn't work
amab8901 opened this issue · comments
I created a blank project and added this in Cargo.toml
[package]
name = "nice"
version = "0.1.0"
edition = "2021"
[dependencies]
reqwest = { version = "0.12.5", features = ["brotli"] }
cargo run
output:
error: failed to select a version for the requirement `brotli = "^6.0"`
candidate versions found which didn't match: 3.5.0, 3.4.0, 3.3.4, ...
location searched: crates.io index
required by package `async-compression v0.4.11`
... which satisfies dependency `async-compression = "^0.4.0"` (locked to 0.4.11) of package `reqwest v0.12.5`
... which satisfies dependency `reqwest = "^0.12.5"` (locked to 0.12.5) of package `nice v0.1.0 (/home/amir-abdin/src/nice)`
perhaps a crate was updated and forgotten to be re-vendored?
I just did the same, created a new project and added your config, and it works for me. Could a cargo clean
or cargo update
fix it for you?
I just did the same, created a new project and added your config, and it works for me. Could a
cargo clean
orcargo update
fix it for you?
I tried them and it didn't work. Idk maybe it's an OS issue? I "upgraded" to the infamous Ubuntu 24.0 version and I've had a lot of strange bugs and unexpected behaviors in various places
Could it be a corrupted ~/.cargo/registry
? What if you nuke it and try again?
This likely isn't a reqwest bug, but something to do with cargo or your specific Cargo.toml
. So I'm going to close here.