Skip to content

Commit 69f9adb

Browse files
committed
Link cfg, remove old note, fix link.
1 parent f2663ba commit 69f9adb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/doc/src/reference/specifying-dependencies.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ Cargo how to find local unpublished crates.
440440

441441

442442
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
444445
these sections:
445446

446447
```toml
@@ -458,8 +459,7 @@ native = { path = "native/x86_64" }
458459
```
459460

460461
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.
463463

464464
If you want to know which cfg targets are available on your platform, run
465465
`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`.
469469
Unlike in your Rust source code,
470470
you cannot use `[target.'cfg(feature = "my_crate")'.dependencies]` to add
471471
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.
473474

474475
In addition to `#[cfg]` syntax, Cargo also supports listing out the full target
475476
the dependencies would apply to:

0 commit comments

Comments
 (0)