| Crates.io | cargo-audit-build |
| lib.rs | cargo-audit-build |
| version | 0.3.2 |
| created_at | 2025-09-21 06:01:28.680264+00 |
| updated_at | 2025-09-22 05:49:12.903802+00 |
| description | Audit cargo build.rs files |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1848482 |
| size | 28,345 |
Workflow for auditing cargo build.rs files to help mitigate supply chain attacks.
The idea is simple; after running cargo add|update run cargo audit-build before running cargo build|check|test|run|bench|doc|install|package.
The tool will fetch dependencies and for each package found with a build.rs file open the build.rs file in your EDITOR so you can inspect it before it would be executed.
cargo install cargo-audit-build
The program will ask you after viewing each build.rs file whether you trust it and your response is then stored in the ~/.cargo/audits/build_scripts folder so that you don't need to re-review build files that have already been trusted. Each build.rs file is committed to the audits repository to track the contents of the build.rs files that have been reviewed.
The ~/.cargo/audits/build_scripts folder is a git repository so it can easily be shared between your machines and/or team members.
EDITOR environment variable must be set.git executable.build.rs files even for targets that you may not intend to compile for.MIT or Apache-2.0