Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ The metadata is passed to the build scripts of **dependent** packages. For
example, if the package `foo` depends on `bar`, which links `baz`, then if
`bar` generates `key=value` as part of its build script metadata, then the
build script of `foo` will have the environment variables `DEP_BAZ_KEY=value`
(note that the value of the `links` key is used).
(note that the value of the `links` key is used and the case change for `key`).
See the ["Using another `sys` crate"][using-another-sys] for an example of
how this can be used.

Expand Down Expand Up @@ -475,7 +475,7 @@ convention of native-library-related packages:

* Common dependencies on `foo-sys` alleviates the rule about one package per
value of `links`.
* Other `-sys` packages can take advantage of the `DEP_NAME_KEY=value`
* Other `-sys` packages can take advantage of the `DEP_LINKS_KEY=value`
environment variables to better integrate with other packages. See the
["Using another `sys` crate"][using-another-sys] example.
* A common dependency allows centralizing logic on discovering `libfoo` itself
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
[`release`] profile. Using this environment variable is not recommended.
Using other environment variables like `OPT_LEVEL` provide a more correct
view of the actual settings being used.
* `DEP_<name>_<key>` --- For more information about this set of environment variables,
* `DEP_<links>_<key>` --- For more information about this set of environment variables,
see build script documentation about [`links`][links].
* `RUSTC`, `RUSTDOC` --- the compiler and documentation generator that Cargo has
resolved to use, passed to the build script so it might use it as well.
Expand Down