@@ -440,7 +440,8 @@ Cargo how to find local unpublished crates.
440
440
441
441
442
442
Platform-specific dependencies take the same format, but are listed under a
443
- ` target ` section. Normally Rust-like ` #[cfg] ` syntax will be used to define
443
+ ` target ` section. Normally Rust-like [ ` #[cfg] `
444
+ syntax] ( ../reference/conditional-compilation.html ) will be used to define
444
445
these sections:
445
446
446
447
``` toml
@@ -458,8 +459,7 @@ native = { path = "native/x86_64" }
458
459
```
459
460
460
461
Like with Rust, the syntax here supports the ` not ` , ` any ` , and ` all ` operators
461
- to combine various cfg name/value pairs. Note that the ` cfg ` syntax has only
462
- been available since Cargo 0.9.0 (Rust 1.8.0).
462
+ to combine various cfg name/value pairs.
463
463
464
464
If you want to know which cfg targets are available on your platform, run
465
465
` rustc --print=cfg ` from the command line. If you want to know which ` cfg `
@@ -469,7 +469,8 @@ run `rustc --print=cfg --target=x86_64-pc-windows-msvc`.
469
469
Unlike in your Rust source code,
470
470
you cannot use ` [target.'cfg(feature = "my_crate")'.dependencies] ` to add
471
471
dependencies based on optional crate features.
472
- Use [ the ` [features] ` section] ( manifest.md#the-features-section ) instead.
472
+ Use [ the ` [features] ` section] ( reference/manifest.html#the-features-section )
473
+ instead.
473
474
474
475
In addition to ` #[cfg] ` syntax, Cargo also supports listing out the full target
475
476
the dependencies would apply to:
0 commit comments