cargo rm

github crates.io build status

New Cargo versions sometimes write out a lockfile that triggers parse failures in old Cargo versions.

```console $ cargo +1.41.0 check ... Finished dev [unoptimized + debuginfo] target(s) in 0.91s

$ cargo +1.37.0 check error: failed to parse lock file at: /git/testing/Cargo.lock

Caused by: invalid serialized PackageId for key package.dependencies ```

The cargo rm subcommand simply deletes the offending lockfile so that the old Cargo can proceed. Install by running cargo install cargo-rm.


vs rm Cargo.lock

cargo rm has three advantages:


License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.