File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,10 @@ specified in the manifest file matches the target triple used as the host or tar
40
40
41
41
Another supported way of setting rustflags in cargo is the ` profile.rustflags ` manifest key that can be set in a ` Cargo.toml ` . This
42
42
works in a slightly different manner than the ways mentioned previously in that it is appended to the set of rustflags calculated from
43
- the environment variables and cargo config settings. It still has the same limitation in that it is applied to all invocations of rustc
44
- including dependencies.
43
+ the environment variables and cargo config settings. This also has support for crate specific rustflags on a per profile basis. This
44
+ currently depends on the [ profile-rustflags] ( https://doc.rust-lang.org/cargo/reference/unstable.html#profile-rustflags-option ) unstable
45
+ option. This restricts setting rustflags for crates to the profile requested. The ` --rustflags ` option works for the current crate
46
+ regardless of the currently requested profile.
45
47
46
48
# Guide-level explanation
47
49
[ guide-level-explanation ] : #guide-level-explanation
You can’t perform that action at this time.
0 commit comments