<div align="center">
<img src="./logo.png" alt="Cargo-Ark Logo" width="96">
# Cargo-Ark
[](https://crates.io/crates/cargo-ark)
[](https://docs.rs/cargo-ark)
[](https://crates.io/crates/cargo-ark)
[](https://github.com/microsoft/ox-tools/actions/workflows/anvil-scheduled.yml)
[](https://codecov.io/gh/microsoft/ox-tools)
[](../../LICENSE)
<a href="../.."><img src="../../logo.svg" alt="This crate was developed as part of the Oxidizer project" width="20"></a>
</div>
Validates Rust release candidates by testing their packaged archives.
Use [`release_dependencies::Candidates`][__link0] to parse a candidate report and
[`release_dependencies::CargoInvoker`][__link1] to prepare Cargo, then pass both to
[`release_dependencies::check`][__link2].
For command-line usage, see the [CLI guide][__link3].
## Example
Check a candidate from the workspace root using the caller’s toolchain:
```rust
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)?;
```
<hr/>
<sub>
This crate was developed as part of <a href="../..">The Oxidizer Project</a>. Browse this crate's <a href="https://github.com/microsoft/ox-tools/tree/main/crates/cargo-ark">source code</a>.
</sub>
[__cargo_doc2readme_dependencies_info]: ggGmYW0CYXZlMC43LjNhdIQblRYhli3L8qob_NSi_WYo69wbWnMVqZw3jJwb3u56HnT6RDphYvRhcoQb9PSGY_pkIqobgNmuKlb9-Tkb3PBBmtvQIwMbA96gBsSKvnZhZIGDaWNhcmdvLWFya2UwLjIuMGljYXJnb19hcms
[__link0]: https://docs.rs/cargo-ark/0.2.0/cargo_ark/?search=release_dependencies::Candidates
[__link1]: https://docs.rs/cargo-ark/0.2.0/cargo_ark/?search=release_dependencies::CargoInvoker
[__link2]: https://docs.rs/cargo-ark/0.2.0/cargo_ark/?search=release_dependencies::check
[__link3]: https://github.com/microsoft/ox-tools/blob/main/crates/cargo-ark/docs/cli.md