#toolchain #rustup #cargo

bin+lib cargo-toolchain

获取活跃 rustup 工具链信息的实用工具

1 个不稳定版本

0.1.0 2020 年 7 月 3 日

#482Cargo 插件

Download history 18/week @ 2024-03-11 37/week @ 2024-03-18 16/week @ 2024-03-25 64/week @ 2024-04-01 26/week @ 2024-04-08 45/week @ 2024-04-15 24/week @ 2024-04-22 20/week @ 2024-05-06 12/week @ 2024-05-13 11/week @ 2024-05-20 9/week @ 2024-06-03 40/week @ 2024-06-10 250/week @ 2024-06-17 17/week @ 2024-06-24

每月 316 次下载
3 包中使用(2 个直接使用)

MIT/Apache

7KB
71

cargo-toolchain

cargo-toolchain 是一个实用工具,用于获取当前活动且默认的 rustup 工具链

它要求已安装 rustup

作为 CLI 的用法

cargo install cargo-toolchain

cargo toolchain # prints the currently active cargo toolchain, e.g. 'stable'

cargo toolchain -d # prints the default toolchain for the directory

cargo toolchain -h # print help message

作为库的用法

https://docs.rs/cargo-toolchain


lib.rs:

cargo-toolchain

cargo-toolchain 是一个实用工具,用于获取当前活动且默认的 rustup 工具链

它要求已安装 rustup

作为 CLI 的用法

cargo install cargo-toolchain

cargo toolchain # prints the currently active cargo toolchain, e.g. 'stable'

cargo toolchain -d # prints the default toolchain for the directory

cargo toolchain -h # print help message

依赖项

~130KB