Skip to main content

anodizer_stage_source/
lib.rs

1//! `stage-source` — emit a `git archive` source tarball and accompanying SBOMs.
2//!
3//! The crate is organised as:
4//! - [`archive`] — `git archive` invocation and extra-files staging.
5//! - [`sbom`] — Cargo.lock parsing plus CycloneDX / SPDX renderers.
6//! - [`run`] — the [`SourceStage`] orchestrator that drives both halves.
7
8mod archive;
9mod run;
10mod sbom;
11
12#[cfg(test)]
13mod tests;
14
15pub use run::SourceStage;
16pub use sbom::{
17    CargoPackage, deterministic_uuid_from, generate_cyclonedx, generate_spdx, parse_cargo_lock,
18};
19
20// `SourceArchiveInputs` and `create_source_archive` are crate-internal helpers
21// that `tests.rs` reaches via `crate::archive::*` directly; no re-export
22// needed.