Open georgmu opened 1 month ago
That was stale information and we've only been supporting default
atm.
The question is which set of features to be considered enabled
And what should we do when the package isn't depended on by you?
I have no experience with multiple workspace members, but here is what I expect:
$ cargo add reqwest
Updating crates.io index
Adding reqwest v0.12 to dependencies
Features as of v0.12.0:
+ __rustls
+ __tls
+ blocking
+ cookies
+ json
+ rustls-pki-types
+ rustls-tls-native-roots
24 deactivated features
(BTW: cargo add
feature list is broken when using version="*"
in Cargo.toml - I will open a separate ticket for this.)
Problem
As described in #14141, the following thing should be displayed for features:
The enabled/disabled features are ignored in the
cargo info
output. There is always just a "+" for default features. Enabled features via Cargo.toml are not displayed as enabled.Steps
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.83.0-nightly (80d82ca22 2024-09-27) release: 1.83.0-nightly commit-hash: 80d82ca22abbee5fb7b51fa1abeb1ae34e99e88a commit-date: 2024-09-27 host: x86_64-unknown-linux-gnu libgit2: 1.8.1 (sys:0.19.0 vendored) libcurl: 8.9.0-DEV (sys:0.4.74+curl-8.9.0 vendored ssl:OpenSSL/1.1.1w) ssl: OpenSSL 1.1.1w 11 Sep 2023 os: Fedora 41.0.0 (FortyOne) [64-bit]