Downgrade version of cargo

Viewed 1075

Have following version:

cargo 1.52.0 (69767412a 2021-04-21)

And I want to downgrade to 1.51, how is that achieveable?

1 Answers

If you want to use a specific version of the Rust toolchain, use rustup install <TOOLCHAIN> to download its components. You can verify its available by using rustup show. Then you can set it as your default using rustup default <TOOLCHAIN>.

rustup install 1.51
rustup default 1.51

cargo should now use the 1.51 version unless otherwise overridden.

Related