rustup是rust版本管理器
安装指令如下
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
接着安装rust总共有三个版可以选择
rustup install stable
输入下面指令检查版本,如果有显示就是代表安装成功
rustc --version
rustc 1.54.0 (a178d0322 2021-07-26)
也可以透过这个 ~/.cargo/bin 目录查看到安装的rust工具
ls ~/.cargo/bin
cargo cargo-clippy cargo-fmt cargo-miri clippy-driver rls rust-gdb rust-lldb rustc rustdoc rustfmt rustup
rustup update
查看目前所以安装的版本
ls ~/.rustup/toolchains/
beta-x86_64-apple-darwin
stable-x86_64-apple-darwin
切换预设版本
rustup default beta-x86_64-apple-darwin
info: using existing install for 'beta-x86_64-apple-darwin'
info: default toolchain set to 'beta-x86_64-apple-darwin'
beta-x86_64-apple-darwin unchanged - rustc 1.55.0-beta.9 (27e88d367 2021-08-28)
针对专案设定版本
rustup override set nightly
info: using existing install for 'beta-x86_64-apple-darwin'
info: override toolchain for '/Users/ken_jan/rust/hello' set to 'beta-x86_64-apple-darwin'
beta-x86_64-apple-darwin unchanged - rustc 1.55.0-beta.9 (27e88d367 2021-08-28)
rustup self uninstall
如果你只是想尝试看看,完成不想安装,也可以使用浏览线上版本
相对於golang的安装,rust官方就内建版本控制方便许多
这部分rust大胜
大家好~ 今天的画画时间又来了 但是 我家狗狗今天送医住院了 可能活不了很多天了........ 所...
复习: 在昨天讲解了如何使用mysqldump备份是数据和binlog相关过滤方法,今天来实际模拟...
tags: ItIron2021 Javascript 前言 作者发烧中,但文章还是得发? 昨天的主...
在Excel中subtotal函数既能求和,不但能求平均值,还能计数,求最值等。可以说是非常实用的一...
本来以为小验完可以回家的一周结果只是我以为QQ 已经大约3周没回家我,以为目前执行速度还在进度内,殊...