#cargo-toml #version #wildcard #cargo #tool #stabilize

app cargo-stabilize

A simple tool which replaces all version wildcards (“*”) in your Cargo.toml with the newest version of the crate. It can also upgrade dependencies that already have versions.

2 unstable releases

0.2.0 Apr 3, 2024
0.1.0 Sep 21, 2018

#132 in Cargo plugins

Download history 3/week @ 2024-02-26 151/week @ 2024-04-01

151 downloads per month

MIT license

10KB
141 lines

Description

View on crates.io

This is simple tool which replaces all version wildcards (*) in your Cargo.toml with the newest version of the crate. It can also upgrade dependencies that already have versions.

Installation

To install, simply run:

cargo install cargo-stabilize

Usage

There are two primary ways to use it. Be warned: Using this tool will reformat your entire Cargo.toml and delete any comments therein. No non-comment information will be lost.

  • cargo stabilize will replace all * dependency versions with the newest version of that crate.
  • cargo stabilize --upgrade will do the same thing, as well as upgrading the versions of all dependencies whose versions are not the newest.

Dependencies

~0.3–9.5MB
~63K SLoC