Optional features are part of the crate — the project should say so
Rust Internals [Unofficial]
March 13, 2026
We will likely never directly support .cargo/config.toml fields in Cargo.toml. Instead, we will need to look at how they should be abstracted in Cargo.toml. This is being tracked in Tracking Issue: Support project-specific config in manifest · Issue #12738 · rust-lang/cargo · GitHub.
Discussion in the ATmosphere