-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Closed as not planned
Copy link
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-featuresArea: features — conditional compilationArea: features — conditional compilationS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Description
cargo-features = ["edition2024"]
[package]
name = "cargo-14010"
version = "0.1.0"
edition = "2024"
[dependencies]
serde = { version = "1.0.203", optional = true }
[features]
serde = []
$ cargo +nightly check -Zcargo-lints
warning: unused optional dependency
--> Cargo.toml:8:1
|
8 | serde = { version = "1.0.203", optional = true }
| -----
|
= note: `cargo::unused_optional_dependency` is set to `warn` by default
= help: remove the dependency or activate it in a feature with `dep:serde`
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.00s
Likely the user intended for dep:serde
to be on the serde
feature and it might be nice for us to call that out explicitly.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-featuresArea: features — conditional compilationArea: features — conditional compilationS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.