File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,10 @@ requiring a sufficiently new version of Cargo to understand `metabuild`.
92
92
93
93
If any of the strings mentioned in ` metabuild ` do not match one of the
94
94
build-dependencies, Cargo should produce an error (* before* attempting to
95
- generate and compile a ` build.rs ` script).
95
+ generate and compile a ` build.rs ` script). However, if a string matches a
96
+ conditional build-dependency, such as one conditional on a feature or target,
97
+ then Cargo should only invoke that build-dependency's ` metabuild ` function when
98
+ those conditions apply.
96
99
97
100
Cargo's documentation on ` metabuild ` should recommend a preferred crate for
98
101
parsing data from ` Cargo.toml ` , to avoid every provider of a metabuild function
You can’t perform that action at this time.
0 commit comments