Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
serde-cyclonedx
This crate provides a type safe serde compatible CycloneDx format. It is intended for use in Rust code which may need to read or write CycloneDx files.
The latest documentation can be found here.
serde is a popular serialization framework for Rust. More information can be found on the official repository: https://github.com/serde-rs/serde
CycloneDx is an industry standard format for maintaining a Software Bill of Materials (SBOM). More information can be found on the official website: https://cyclonedx.org/.
Usage
For most cases, simply use the root [cyclonedx::v_1_4::CycloneDx] struct with [serde] to read and write to and from the struct.
Example
use CycloneDx;
let data = read_to_string;
let cyclonedx: CycloneDx = from_str.unwrap;
Because many of the [cyclonedx::v_1_4::CycloneDx] structures contain a lot of optional fields, it is often convenient to use the builder pattern to contstruct these structs. Each structure has a builder with a default.
Example
use CycloneDxBuilder;
let cyclonedx = default
.bom_format
.spec_version
.version
.build
.unwrap;
Internal Implementation Details
The root struct is automatically generated from the parsed CycloneDX JSON schemas, this is done at build time (via the buildscript).
License: MIT