Open konstin opened 1 week ago
Documenting is hard ;( This is something we've tried to make it clear. See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/cargo-inherited-default-features.html and https://github.com/rust-lang/cargo/issues/12162#issuecomment-2020763765.
Any idea how to add a succinct explanation to the doc? cc @Muscraft
Something like "A workspace member will inherit default-features = false
if set in the workspace root, but it can't deactivate default features if they weren't deactivated by the workspace root". I found the table in https://github.com/rust-lang/cargo/issues/12162#issuecomment-2020763765 very helpful.
The cargo docs on workspace packages say (https://doc.rust-lang.org/nightly/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace):
Trying this out however, cargo does not seem to mind the
default-features
key:It's unfortunately not clear to me from the docs if
default-features
are inherited.