19 releases (12 stable)
|8.0.3||Dec 1, 2022|
|8.0.2||Jun 30, 2022|
|8.0.1||May 21, 2022|
|7.1.0||Apr 23, 2022|
|0.2.1||Sep 21, 2019|
#14 in Parser implementations
244,409 downloads per month
Used in 176 crates (28 directly)
Cargo.lock parser/serializer with support
for the V1, V2 (merge-friendly) and V3 formats, as well as optional
dependency tree analysis features. Used by RustSec.
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
Minimum Supported Rust Version
Rust 1.56 or higher.
Minimum supported Rust version can be changed in the future, but it will be accompanied by a minor version bump.
- MSRV is considered exempt from SemVer as noted above
cargo lockCLI 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-treefeature depends on the pre-1.0
petgraphcrate. We reserve the right to update
petgraph, however when we do it will be accompanied by a minor version bump.
Command Line Interface
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.lockfiles between the V1 and V2 formats
tree: print a dependency tree from
See the crate documentation for more detailed usage information.
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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.