#ast #upgrade #automatic #cargo-up #breaking #rust-analyzer

rust-visitor

Visitor trait for Rust AST based on rust-analyzer

5 unstable releases

0.3.1 Apr 30, 2022
0.3.0 Oct 13, 2021
0.2.1 Nov 13, 2020
0.2.0 Oct 9, 2020
0.1.0 Oct 2, 2020

#3 in #cargo-up


Used in cargo-up

MIT license

6KB
188 lines

cargo-up

Upgrade your dependencies by automatically fixing your code

Dont be afraid to upgrade

Installation

cargo install cargo-up --features cli --no-default-features

Users Workflow

Assuming that you have a project with the following Cargo.toml

[dependencies]
foo = "0.8.2"

If foo has released 0.9.0 with breaking changes along with a new release of their foo_up which details the changes, you can simply run the following command in your project:

cargo up dep foo

Your project code will be automatically upgraded to use the new foo@0.9.0.

NOTE: The tool upgrades to the latest version of the dependency, which means it can do several sequential version upgrades one after the other in a single run.

Maintainers Workflow

TODO:

Dependencies

~3MB
~65K SLoC