strip_cargo_version

Crates.iostrip_cargo_version
lib.rsstrip_cargo_version
version0.0.3
sourcesrc
created_at2021-07-07 17:25:40.998498
updated_at2021-07-07 23:08:50.982998
descriptionStrip the version information from the Cargo manifests of your crates
homepage
repositoryhttps://github.com/hulthe/strip_cargo_version
max_upload_size
id419963
size25,491
Joakim Hulthe (hulthe)

documentation

README

strip_cargo_version

A small hacky utility for setting the version of a Rust crate to 0.0.0.

I use this for optimising build-times in Docker, avoiding having to recompile dependencies when bumping the crate version.

It currently works by simply setting package.version in Cargo.toml, as well as setting package.<name>.version in Cargo.lock (where <name> is the package.name value in Cargo.toml).

If the Cargo.toml contains a workspace, it will strip workspace.members as well.

Commit count: 6

cargo fmt