mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Auto merge of #4635 - dethoter:4430, r=alexcrichton
Fix a documentation for package.build option. Fix for #4430.
This commit is contained in:
commit
7c47eeb29f
@ -18,9 +18,10 @@ build = "build.rs"
|
||||
|
||||
The Rust file designated by the `build` command (relative to the package root)
|
||||
will be compiled and invoked before anything else is compiled in the package,
|
||||
allowing your Rust code to depend on the built or generated artifacts. Note that
|
||||
if you do not specify a value for `build` but your package root does contains a
|
||||
`"build.rs"` file, Cargo will compile and invoke this file for you.
|
||||
allowing your Rust code to depend on the built or generated artifacts.
|
||||
By default Cargo looks up for `"build.rs"` file in a package root (even if you
|
||||
do not specify a value for `build`). Use `build = "custom_build_name.rs"` to specify
|
||||
a custom build name or `build = false` to disable automatic detection of the build script.
|
||||
|
||||
Some example use cases of the build command are:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user