9 releases
0.1.8 | Nov 15, 2024 |
---|---|
0.1.7 | Jul 26, 2024 |
0.1.6 | Nov 29, 2023 |
0.1.5 | Jun 3, 2023 |
0.1.0 | Nov 30, 2022 |
#111 in Cargo plugins
7,663 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.
Trademark Notice
"Rust" and "Cargo" are trademarks of the Rust Foundation. This project is not affiliated with, endorsed by, or otherwise associated with the Rust Project or Rust Foundation.
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
~235–690KB
~16K SLoC