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

Download history 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 1983/week @ 2024-10-19 1852/week @ 2024-10-26 1433/week @ 2024-11-02 1436/week @ 2024-11-09 2529/week @ 2024-11-16 1979/week @ 2024-11-23 1524/week @ 2024-11-30

7,663 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.

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