Skip to content

Commit

Permalink
Auto merge of #3286 - rjgoldsborough:build-script-docs-mistake-336, r…
Browse files Browse the repository at this point in the history
…=alexcrichton

fixing build script docs mistakes

Fixes rust-lang/crates.io#336
  • Loading branch information
bors authored Nov 15, 2016
2 parents 8b5aec1 + 579fee3 commit a9c23dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/doc/build-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ crate is built:
out in crates.io crates are not emitted by default.

Any other element is a user-defined metadata that will be passed to
dependencies. More information about this can be found in the [`links`][links]
dependents. More information about this can be found in the [`links`][links]
section.

[links]: #the-links-manifest-key
Expand Down Expand Up @@ -252,9 +252,7 @@ This is where the real magic happens. The library is using the rustc-defined
the generated file (`hello.rs`) into the crate’s compilation.

Using the structure shown here, crates can include any number of generated files
from the build script itself. We’ve also seen a brief example of how a build
script can use a crate as a dependency purely for the build process and not for
the crate itself at runtime.
from the build script itself.

# Case study: Building some native code

Expand Down Expand Up @@ -400,6 +398,9 @@ And there we go! This should complete our example of building some C code from a
Cargo package using the build script itself. This also shows why using a build
dependency can be crucial in many situations and even much more concise!

We’ve also seen a brief example of how a build script can use a crate as a
dependency purely for the build process and not for the crate itself at runtime.

# Case study: Linking to system libraries

The final case study here will be investigating how a Cargo library links to a
Expand Down

0 comments on commit a9c23dd

Please sign in to comment.