Cargo

#Develop/Rust/Cargo

返回
闪念

检查并更新 Cargo 依赖

检查并更新 Cargo 依赖 使用 cargo-edit 实现。 安装 cargo-edit `shell cargo install cargo-edit ` 检查是否有更新 `shell cargo upgrade -i --dry-run ` 更新 `shell cargo upgrade -i `

闪念

20240114 dei5mqa1

更新 Cargo installed 的程序。 `shell cargo install $(cargo install --list | egrep '^[a-z0-9_-]+ v[0-9.]+:$' | cut -f1 -d' ') ` 上面的脚本能将通过 cargo 安装的程序更新到最新的版本。 来源:https://github.com/rust-lang/cargo/issues/95...