cargo-ensure-installed
Like cargo install
but if you already have a suitable version, simply leaves it as-is.
Installation
cargo install cargo-ensure-installed
Usage
cargo ensure-install --package=rustfmt --version=0.9.0
Version may be any version requirement understood by SemVer.
License
This project is licensed under Apache 2.