The CycloneDX module for Rust (Cargo) creates a valid CycloneDX Software Bill-of-Material (SBOM) containing an aggregate of all project dependencies. CycloneDX is a lightweight SBOM specification that is easily created, human and machine readable, and simple to parse.
Execute CycloneDX from within a Rust project directory containing Cargo.toml.
cargo install cyclonedx-bom
~/.cargo/bin/cyclonedx-bom cyclonedx
cargo cyclonedx
Permission to modify and redistribute is granted under the terms of the Apache 2.0 license. See the LICENSE file for the full license.