Skip to content

Glossary: Rust in Practice

build script

Also written: build.rs

A file named `build.rs` next to `Cargo.toml` that Cargo compiles and runs before building your package. It can prepare things such as compiled C code, often using the `cc` crate.

Where the book teaches it

Related terms

build dependency