8 releases

0.1.7 Jul 26, 2024
0.1.6 Nov 29, 2023
0.1.5 Jun 3, 2023
0.1.4 Mar 25, 2023
0.1.0 Nov 30, 2022

#156 in Cargo plugins

Download history 1203/week @ 2024-07-06 928/week @ 2024-07-13 1168/week @ 2024-07-20 1382/week @ 2024-07-27 1125/week @ 2024-08-03 1407/week @ 2024-08-10 1285/week @ 2024-08-17 1979/week @ 2024-08-24 1492/week @ 2024-08-31 1900/week @ 2024-09-07 1498/week @ 2024-09-14 1713/week @ 2024-09-21 1929/week @ 2024-09-28 2103/week @ 2024-10-05 1742/week @ 2024-10-12 1708/week @ 2024-10-19

7,730 downloads per month
Used in 7 crates

MIT license

7KB
50 lines

rustup-toolchain

A library for programmatically working with rustup toolchains.

Please refer to the docs to learn more.

Changelog

Please refer to CHANGELOG.md.

Tests

This library is indirectly and heavily tested through the public-api and cargo-public-api test suites. Their tests heavily depend on this library, so if all of their tests pass, then this library works as it should.

All tests are of course ensured to pass before a new release of this crate is made.


lib.rs:

Utilities for working with rustup toolchains.

Ensuring a toolchain is installed

This checks if a toolchain is installed, and installs it if not.

rustup_toolchain::ensure_installed("nightly").unwrap();

Dependencies

~255–710KB
~17K SLoC