You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a virtual manifest (no [package] section), unknown sections in the Cargo.toml sections are silently ignored. For non-virtual packages, however, they trigger a warning.
Behavior should be consistent, and probably also trigger a warning for virtual manifests.
I'd like all unrecognized data to cause an error---failing fast during configuring is a better user experience than mysterious failure during building. After all, we don't like rustc skip language features it doesn't understand!
Plugins for declarative build.rs replacements can declare what non-standard sections they parse, analogous to the plan for attribute-like procedural macros in Rust.
For a virtual manifest (no
[package]
section), unknown sections in theCargo.toml
sections are silently ignored. For non-virtual packages, however, they trigger a warning.Behavior should be consistent, and probably also trigger a warning for virtual manifests.
Also see rust-lang/rfcs#1133 (comment).
The text was updated successfully, but these errors were encountered: