Rollup merge of #55111 - Havvy:rustc-book-cfg-examples, r=GuillaumeGomez
[Rustc Book] Explain --cfg's arguments I removed this from the reference since it's rustc specific, and noticed it wasn't well documented on the page that should document it well. It does seem to go against the grain of one line per command line flag though.
This commit is contained in:
commit
1c090061e9
@ -10,6 +10,11 @@ This flag will print out help information for `rustc`.
|
||||
|
||||
This flag can turn on or off various `#[cfg]` settings.
|
||||
|
||||
The value can either be a single identifier or two identifiers separated by `=`.
|
||||
|
||||
For examples, `--cfg 'verbose'` or `--cfg 'feature="serde"'`. These correspond
|
||||
to `#[cfg(verbose)]` and `#[cfg(feature = "serde")]` respectively.
|
||||
|
||||
## `-L`: add a directory to the library search path
|
||||
|
||||
When looking for external crates, a directory passed to this flag will be searched.
|
||||
|
Loading…
x
Reference in New Issue
Block a user