7 releases

0.1.6 Nov 29, 2023
0.1.5 Jun 3, 2023
0.1.4 Mar 25, 2023
0.1.3 Feb 18, 2023
0.1.0 Nov 30, 2022

#228 in Cargo plugins

Download history 1253/week @ 2023-12-05 1061/week @ 2023-12-12 1073/week @ 2023-12-19 1076/week @ 2023-12-26 853/week @ 2024-01-02 1011/week @ 2024-01-09 1545/week @ 2024-01-16 1365/week @ 2024-01-23 1042/week @ 2024-01-30 940/week @ 2024-02-06 946/week @ 2024-02-13 819/week @ 2024-02-20 818/week @ 2024-02-27 1752/week @ 2024-03-05 1463/week @ 2024-03-12 741/week @ 2024-03-19

4,869 downloads per month
Used in 5 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

~0.3–0.8MB
~19K SLoC