Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Cargo Build Script Add Wings to Cargo Build

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. build.rs is located in the root directory of the project.

  2. build.rs can be used to directly generate a module or generate some Rust code to be included in another Rust file using the macro include!.

  3. Environment variables for build.rs can be configured in .cargo/config.toml.

References