| Crates.io | cargo-lock |
| lib.rs | cargo-lock |
| version | 10.1.0 |
| created_at | 2019-09-21 04:19:18.783164+00 |
| updated_at | 2025-01-19 03:03:33.212355+00 |
| description | Self-contained Cargo.lock parser with optional dependency graph analysis |
| homepage | https://rustsec.org |
| repository | https://github.com/rustsec/rustsec |
| max_upload_size | |
| id | 166376 |
| size | 206,306 |
cargo-lock crateSelf-contained serde-powered Cargo.lock parser/serializer with support
for the V1/V2/V3/V4 formats, as well as optional dependency tree analysis features.
Used by RustSec.
When the dependency-tree feature of this crate is enabled, it supports
computing a directed graph of the dependency tree, modeled using the
petgraph crate, along with support for printing dependency trees ala
the cargo-tree crate.
Rust 1.70 or higher.
Minimum supported Rust version can be changed in the future, but it will be accompanied by a minor version bump.
cargo lock CLI interface is not considered to have a stable interface
and is also exempted from SemVer. We reserve the right to make substantial
changes to it at any time (for now)dependency-tree feature depends on the pre-1.0 petgraph crate.
We reserve the right to update petgraph, however when we do it will be
accompanied by a minor version bump.This crate provides a cargo lock subcommand which can be installed with:
cargo install cargo-lock --features=cli
It supports the following subcommands:
list: list packages in Cargo.locktranslate: translate Cargo.lock files between the V1 and V2 formatstree: print a dependency tree from Cargo.lock aloneSee the crate documentation for more detailed usage information.
Licensed under either of:
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.