• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/workflows/H03-May-2022-187156

src/H03-May-2022-1,9341,296

tests/H03-May-2022-6,5175,864

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D23-Jan-202074 65

.gitignoreH A D21-Jan-202019 32

CHANGES.mdH A D22-Jan-20202.5 KiB7653

Cargo.lockH A D23-Jan-20205 KiB203180

Cargo.tomlH A D23-Jan-20201.4 KiB5345

Cargo.toml.orig-cargoH A D22-Jan-2020831 2925

LICENSE-APACHEH A D21-Sep-201910.6 KiB202169

LICENSE-MITH A D21-Sep-20191 KiB2622

README.mdH A D22-Jan-20202.7 KiB7855

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