赞
踩
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y --no-modify-path --profile default --component rustfmt #这段无法镜像, 但貌似并不慢 #会提示 source ~/.cargo/env #rust bin目录加到PATH echo 'source ~/.cargo/env' >> ~/.bash_profile # for bash echo 'export RUSTUP_UPDATE_ROOT=https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup' >> ~/.bash_profile echo 'export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup' >> ~/.bash_profile #参考: https://mirrors.tuna.tsinghua.edu.cn/help/rustup/ cat <<'OEF' > ~/.cargo/config [source.crates-io] replace-with = 'tuna' [source.tuna] registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index" EOF #参考: chatgpt : https://site.easygpt.work/ 点击 https://vip.easychat.work, # 提示自动填写 “检测到链接中包含了预制设置,是否自动填入? { "endpoint": "https://api3.eqing.tech/api/openai" }” # 点击 是 source ~/.bash_profile
cargo安装nushell
cargo install nu
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。