rust项目rustc版本不够报错

错误信息

error: package `hashbrown v0.13.2` cannot be built because it requires rustc 1.61.0 or newer, while the currently active rustc version is 1.59.0

错误 提示是因为rustc的版本不够导致不能编译, 想法肯定是升级rustc的版本.

网上找到的方案是(https://stackoverflow.com/questions/37928591/is-there-a-command-to-update-cargo-to-the-latest-official-release)

> rustc --version
rustc 1.41.0 (5e1a79984 2020-01-27)

> rustup update stable   # 看着下载了新的版本, 
> rustc --version        # 但是并没有使用
rustc 1.41.0 (5e1a79984 2020-01-27)

> rustup default stable-x86_64-apple-darwin  # 还需要根据下载的版本进行切换

> rustc --version        # 然后就切换到新的版本了
rustc 1.47.0 (18bf6b4f0 2020-10-07)
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值