{"id":17111104,"url":"https://github.com/davidrjonas/cargo-lockdiff","last_synced_at":"2025-04-13T02:32:09.963Z","repository":{"id":57536041,"uuid":"252104411","full_name":"davidrjonas/cargo-lockdiff","owner":"davidrjonas","description":"See what crates have changed after you run `cargo update` by comparing Cargo.lock to the vcs HEAD or file of your choice.","archived":false,"fork":false,"pushed_at":"2024-12-10T07:55:34.000Z","size":106,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T20:21:20.669Z","etag":null,"topics":["cargo","cargo-lock","cargo-lockdiff","crates","diff","lock","lockfile","plugin","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidrjonas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-01T07:34:18.000Z","updated_at":"2024-12-10T07:55:26.000Z","dependencies_parsed_at":"2024-11-07T18:04:07.992Z","dependency_job_id":"6ee6adc6-3eab-4ed0-9209-780b1c5d154b","html_url":"https://github.com/davidrjonas/cargo-lockdiff","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"100837ad5748a5b9d8408167b72426e4462750f7"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjonas%2Fcargo-lockdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjonas%2Fcargo-lockdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjonas%2Fcargo-lockdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidrjonas%2Fcargo-lockdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidrjonas","download_url":"https://codeload.github.com/davidrjonas/cargo-lockdiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657793,"owners_count":21140842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","cargo-lock","cargo-lockdiff","crates","diff","lock","lockfile","plugin","rust"],"created_at":"2024-10-14T16:49:11.012Z","updated_at":"2025-04-13T02:32:09.945Z","avatar_url":"https://github.com/davidrjonas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"cargo-lockdiff\n==============\n\n[![Crates.io](https://img.shields.io/crates/v/cargo-lockdiff)](https://crates.io/crates/cargo-lockdiff)\n\nSee what crates have changed after you run `cargo update` by comparing Cargo.lock to the vcs HEAD or file of your choice.\n\nSupports git, mercurial, and plain files.\n\nExample\n-------\n\n### Raw\n\n```\n$ cargo lockdiff --from \"HEAD@{2 months ago}\"\n\n| Package                      | From    | To                           | Compare    |\n|------------------------------|---------|------------------------------|------------|\n| [serde_json][C6]             | 1.0.42  | 1.0.48                       | [...][C7]  |\n| [sha2][C8]                   | 0.8.0   | 0.8.1                        | [...][C9]  |\n| [sharded-slab][CA]           | NEW     | 0.0.8                        |            |\n| signal-hook                  | 0.1.12  | REMOVED                      |            |\n| [smallvec][CB]               | 1.0.0   | 1.2.0                        | [...][CC]  |\n| spin                         | 0.5.2   | REMOVED                      |            |\n| string                       | 0.2.1   | REMOVED                      |            |\n| [strum][CD]                  | NEW     | 0.18.0                       |            |\n| [strum_macros][CE]           | NEW     | 0.18.0                       |            |\n| [syn][CF]                    | 1.0.11  | 1.0.17                       | [...][D0]  |\n| [thiserror][D2]              | NEW     | 1.0.13                       |            |\n| [thiserror-impl][D3]         | NEW     | 1.0.13                       |            |\n| [thread_local][D4]           | NEW     | 1.0.1                        |            |\n| [tokio][D5]                  | NEW     | 0.2.13                       |            |\n| [tokio-codec][D6]            | 0.1.1   | 0.1.2                        | [...][D7]  |\n| tokio-signal                 | 0.2.7   | REMOVED                      |            |\n| [tracing][F1]                | 0.1.10  | 0.1.13                       | [...][F2]  |\n| [tracing-attributes][F3]     | 0.1.5   | 0.1.7                        | [...][F4]  |\n\n[C6]: https://crates.io/crates/serde_json\n[C7]: https://diff.rs/serde%5Fjson/1%2E0%2E42/serde%5Fjson/1%2E0%2E48/Cargo.toml\n[C8]: https://crates.io/crates/sha2\n[C9]: https://diff.rs/sha2/0%2E8%2E0/sha2/0%2E8%2E1/Cargo.toml\n[CA]: https://crates.io/crates/sharded-slab\n[CB]: https://crates.io/crates/smallvec\n[CC]: https://diff.rs/smallvec/1%2E0%2E0/smallvec/1%2E2%2E0/Cargo.toml\n[CD]: https://crates.io/crates/strum\n[CE]: https://crates.io/crates/strum_macros\n[CF]: https://crates.io/crates/syn\n[D0]: https://diff.rs/syn/1%2E0%2E11/syn/1%2E0%2E17/Cargo.toml\n[D2]: https://crates.io/crates/thiserror\n[D3]: https://crates.io/crates/thiserror-impl\n[D4]: https://crates.io/crates/thread_local\n[D5]: https://crates.io/crates/tokio\n[D6]: https://crates.io/crates/tokio-codec\n[D7]: https://diff.rs/tokio%2Dcodec/0%2E1%2E1/tokio%2Dcodec/0%2E1%2E2/Cargo.toml\n[F1]: https://crates.io/crates/tracing\n[F2]: https://diff.rs/tracing/0%2E1%2E10/tracing/0%2E1%2E13/Cargo.toml\n[F3]: https://crates.io/crates/tracing-attributes\n[F4]: https://diff.rs/tracing%2Dattributes/0%2E1%2E5/tracing%2Dattributes/0%2E1%2E7/Cargo.toml\n```\n\n### Rendered\n\n| Package                      | From    | To                           | Compare    |\n|------------------------------|---------|------------------------------|------------|\n| [serde_json][C6]             | 1.0.42  | 1.0.48                       | [...][C7]  |\n| [sha2][C8]                   | 0.8.0   | 0.8.1                        | [...][C9]  |\n| [sharded-slab][CA]           | NEW     | 0.0.8                        |            |\n| signal-hook                  | 0.1.12  | REMOVED                      |            |\n| [smallvec][CB]               | 1.0.0   | 1.2.0                        | [...][CC]  |\n| spin                         | 0.5.2   | REMOVED                      |            |\n| string                       | 0.2.1   | REMOVED                      |            |\n| [strum][CD]                  | NEW     | 0.18.0                       |            |\n| [strum_macros][CE]           | NEW     | 0.18.0                       |            |\n| [syn][CF]                    | 1.0.11  | 1.0.17                       | [...][D0]  |\n| [thiserror][D2]              | NEW     | 1.0.13                       |            |\n| [thiserror-impl][D3]         | NEW     | 1.0.13                       |            |\n| [thread_local][D4]           | NEW     | 1.0.1                        |            |\n| [tokio][D5]                  | NEW     | 0.2.13                       |            |\n| [tokio-codec][D6]            | 0.1.1   | 0.1.2                        | [...][D7]  |\n| tokio-signal                 | 0.2.7   | REMOVED                      |            |\n| [tracing][F1]                | 0.1.10  | 0.1.13                       | [...][F2]  |\n| [tracing-attributes][F3]     | 0.1.5   | 0.1.7                        | [...][F4]  |\n\n[C6]: https://crates.io/crates/serde_json\n[C7]: https://diff.rs/serde%5Fjson/1%2E0%2E42/serde%5Fjson/1%2E0%2E48/Cargo.toml\n[C8]: https://crates.io/crates/sha2\n[C9]: https://diff.rs/sha2/0%2E8%2E0/sha2/0%2E8%2E1/Cargo.toml\n[CA]: https://crates.io/crates/sharded-slab\n[CB]: https://crates.io/crates/smallvec\n[CC]: https://diff.rs/smallvec/1%2E0%2E0/smallvec/1%2E2%2E0/Cargo.toml\n[CD]: https://crates.io/crates/strum\n[CE]: https://crates.io/crates/strum_macros\n[CF]: https://crates.io/crates/syn\n[D0]: https://diff.rs/syn/1%2E0%2E11/syn/1%2E0%2E17/Cargo.toml\n[D2]: https://crates.io/crates/thiserror\n[D3]: https://crates.io/crates/thiserror-impl\n[D4]: https://crates.io/crates/thread_local\n[D5]: https://crates.io/crates/tokio\n[D6]: https://crates.io/crates/tokio-codec\n[D7]: https://diff.rs/tokio%2Dcodec/0%2E1%2E1/tokio%2Dcodec/0%2E1%2E2/Cargo.toml\n[F1]: https://crates.io/crates/tracing\n[F2]: https://diff.rs/tracing/0%2E1%2E10/tracing/0%2E1%2E13/Cargo.toml\n[F3]: https://crates.io/crates/tracing-attributes\n[F4]: https://diff.rs/tracing%2Dattributes/0%2E1%2E5/tracing%2Dattributes/0%2E1%2E7/Cargo.toml\n\nInstall\n-------\n\n```bash\ncargo install cargo-lockdiff\n\n# try it\ncargo lockdiff --help\n```\n\n### Dependencies\n\nTo use `git` or `hg` the respective binary must be found in `PATH`. `cargo metadata` is needed for links.\n\nUsage\n-----\n\n```bash\ncargo update\n# don't commit yet!\ncargo lockdiff\n```\n\nOr from vim, to insert the output into the commit message, type `:r!cargo lockdiff`.\n\nTo see what changed long ago (in git),\n\n```bash\ncargo lockdiff --from \"HEAD@{2 months ago}\"\n```\n\n### Options\n\nEnvironment variables prefixed with `CARGO_LOCKDIFF_`, such as `CARGO_LOCKDIFF_NO_LINKS=true`, may also be used. Set these in your `~/.profile` (specific to your shell, of course) as defaults.\n\n- `-p, --path \u003cpath\u003e`: Base to with which to prefix paths. E.g. `-p app` would look for HEAD:app/Cargo.lock and app/Cargo.lock. Env: `CARGO_LOCKDIFF_PATH`\n- `--from \u003cfileish\u003e`: The file, vcs ref, or vcs ref with filename to compare from.  To force the use of a particular vcs, prepend it with a colon. E.g. \"hg:.\" Env: `CARGO_LOCKDIFF_FROM`\n\n- `--to \u003cfileish\u003e`: The file, vcs ref, or vcs ref with filename to compare to.  To force the use of a particular vcs, prepend it with a colon. E.g. \"hg:.\" Env: `CARGO_LOCKDIFF_TO`\n\n- `-n, --no-links`: Include links to where possible. Env: `CARGO_LOCKDIFF_NO_LINKS` (\"true\" or \"false\")\n\n- `--help`: Display usage information\n\nCompare Urls\n------------\n\nCompare urls are best effort. Unfortunately there is no strict mapping between crate version numbers and VCS tags so the URLs are just guesses. There doesn't seem to be much consistency. Many maintainers seem to prefix their version number tags with a \"v\" or, for larger projects, the names of individual crates. If anyone has ideas on how to solve improve it I'd love to try some out.\n\nCurrently only Github is supported. Others will be added.\n\nTodo\n----\n\n- [ ] Handle manifest-path, https://docs.rs/cargo_metadata/0.9.1/cargo_metadata/4\n- [ ] Test fixtures\n- [ ] Http source\n- [ ] Research other popular rust VCSs, add them.\n- [ ] Output formats such as JSON\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrjonas%2Fcargo-lockdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidrjonas%2Fcargo-lockdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidrjonas%2Fcargo-lockdiff/lists"}