cargo管理 Rust 项目及其模块依赖项(crates)。 此命令也有关于其子命令的文件,例如:
build. 更多信息:https://doc.rust-lang.org/stable/cargo/。
cargo search {{搜索关键词}}
cargo install {{包名}}
cargo install --list
cargo init --{{bin|lib}} {{路径/到/目录}}
Cargo.toml 添加一个依赖项:cargo add {{依赖项}}
cargo {{[b|build]}} {{[-r|--release]}}
rustup):cargo +nightly {{[b|build]}}
cargo {{[b|build]}} {{[-j|--jobs]}} {{线程数}}