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
7,730 downloads per month
Used in 7 crates
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