Getting started - Rust Programming Language
https://www.rust-lang.org/learn/get-startedLet’s add a dependency to our application. You can find all sorts of libraries on crates.io, the package registry for Rust.In Rust, we often refer to packages as “crates.” In this project, we’ll use a crate called ferris-says.. In our Cargo.toml file we’ll add this information (that we got from the crate page): [dependencies] ferris-says = "0.2"
Build Scripts - The Cargo Book
web.mit.edu › rust › htmlThe 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. By default Cargo looks up for "build.rs" file in a package root (even if you do not specify a value for build ).