Expand description
Validates Rust release candidates by testing their packaged archives.
Use release_dependencies::Candidates to parse a candidate report and
release_dependencies::CargoInvoker to prepare Cargo, then pass both to
release_dependencies::check.
For command-line usage, see the CLI guide.
§Example
Check a candidate from the workspace root using the caller’s toolchain:
use cargo_ark::release_dependencies::{Candidates, CargoInvoker, check};
let candidates = Candidates::from_report(r#"[{"name":"my-crate","new_version":"1.2.0"}]"#)?;
let cargo = CargoInvoker::new(std::path::Path::new("."), Default::default(), None)?;
check(candidates, cargo)?;