错误信息
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)