Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 187 | 156 | |
src/ | H | 03-May-2022 | - | 1,934 | 1,296 | |
tests/ | H | 03-May-2022 | - | 6,517 | 5,864 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 23-Jan-2020 | 74 | 6 | 5 | |
.gitignore | H A D | 21-Jan-2020 | 19 | 3 | 2 | |
CHANGES.md | H A D | 22-Jan-2020 | 2.5 KiB | 76 | 53 | |
Cargo.lock | H A D | 23-Jan-2020 | 5 KiB | 203 | 180 | |
Cargo.toml | H A D | 23-Jan-2020 | 1.4 KiB | 53 | 45 | |
Cargo.toml.orig-cargo | H A D | 22-Jan-2020 | 831 | 29 | 25 | |
LICENSE-APACHE | H A D | 21-Sep-2019 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 21-Sep-2019 | 1 KiB | 26 | 22 | |
README.md | H A D | 22-Jan-2020 | 2.7 KiB | 78 | 55 |
README.md
1# `cargo-lock` crate 2 3[![Latest Version][crate-image]][crate-link] 4[![Docs][docs-image]][docs-link] 5[![Build Status][build-image]][build-link] 6[![Safety Dance][safety-image]][safety-link] 7![Rust 1.35+][rustc-image] 8![Apache 2.0 OR MIT licensed][license-image] 9[![Gitter Chat][gitter-image]][gitter-link] 10 11Self-contained [serde]-powered `Cargo.lock` parser/serializer with support for 12both the V1 and V2 (merge-friendly) formats, as well as optional dependency 13tree analysis features. Used by [RustSec]. 14 15When the `dependency-tree` feature of this crate is enabled, it supports 16computing a directed graph of the dependency tree, modeled using the 17[`petgraph`] crate, along with support for printing dependency trees ala 18the [`cargo-tree`] crate. 19 20[Documentation][docs-link] 21 22## Requirements 23 24`cargo-lock` requires Rust **1.35** or later. 25 26## Command Line Interface 27 28This crate provides a `cargo lock` subcommand which can be installed with: 29 30``` 31$ cargo install cargo-lock 32``` 33 34It supports the following subcommands: 35 36- `translate`: translate `Cargo.lock` files between the V1 and V2 formats 37 38See the [crate documentation][docs-link] for more detailed usage information. 39 40## License 41 42Licensed under either of: 43 44 * Apache License, Version 2.0 ([LICENSE-APACHE] or https://www.apache.org/licenses/LICENSE-2.0) 45 * MIT license ([LICENSE-MIT] or https://opensource.org/licenses/MIT) 46 47at your option. 48 49### Contribution 50 51Unless you explicitly state otherwise, any contribution intentionally submitted 52for inclusion in the work by you shall be dual licensed as above, without any 53additional terms or conditions. 54 55[//]: # (badges) 56 57[crate-image]: https://img.shields.io/crates/v/cargo-lock.svg 58[crate-link]: https://crates.io/crates/cargo-lock 59[docs-image]: https://docs.rs/cargo-lock/badge.svg 60[docs-link]: https://docs.rs/cargo-lock/ 61[build-image]: https://github.com/rustsec/cargo-lock/workflows/Rust/badge.svg?branch=master&event=push 62[build-link]: https://github.com/rustsec/cargo-lock/actions 63[license-image]: https://img.shields.io/badge/license-Apache2.0%2FMIT-blue.svg 64[rustc-image]: https://img.shields.io/badge/rustc-1.35+-blue.svg 65[safety-image]: https://img.shields.io/badge/unsafe-forbidden-success.svg 66[safety-link]: https://github.com/rust-secure-code/safety-dance/ 67[gitter-image]: https://badges.gitter.im/badge.svg 68[gitter-link]: https://gitter.im/RustSec/Lobby 69 70[//]: # (general links) 71 72[serde]: https://serde.rs/ 73[RustSec]: https://rustsec.org/ 74[`petgraph`]: https://github.com/petgraph/petgraph 75[`cargo-tree`]: https://github.com/sfackler/cargo-tree 76[LICENSE-APACHE]: https://github.com/RustSec/cargo-lock/blob/master/LICENSE-APACHE 77[LICENSE-MIT]: https://github.com/RustSec/cargo-lock/blob/master/LICENSE-MIT 78