Skip to content

Commit e46a9ec

Browse files
committed
Auto merge of #10401 - ehuss:target-dep-doc-fix, r=alexcrichton
Remove invalid target-specific dependency example. The example with disjoint target configs does not work (and AFAIK has never worked). It fails with the error: ``` Dependency 'native' has different source paths depending on the build target. Each dependency must have a single canonical source path irrespective of build target. ``` This removes it to avoid confusion. cc #7753
2 parents c974e35 + f54ecdb commit e46a9ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ winhttp = "0.4.0"
255255
openssl = "1.0.1"
256256

257257
[target.'cfg(target_arch = "x86")'.dependencies]
258-
native = { path = "native/i686" }
258+
native-i686 = { path = "native/i686" }
259259

260260
[target.'cfg(target_arch = "x86_64")'.dependencies]
261-
native = { path = "native/x86_64" }
261+
native-x86_64 = { path = "native/x86_64" }
262262
```
263263

264264
Like with Rust, the syntax here supports the `not`, `any`, and `all` operators

0 commit comments

Comments
 (0)