Summary 简介 入门 安装 初次使用 Cargo Cargo 指南 为什么存在 Cargo 创建一个新的包 处理现有包 依赖 项目布局 Cargo.toml 和 Cargo.lock 测试 持续集成 Cargo Home 构建缓存 Cargo 参考 指定依赖 Overriding Dependencies 清单格式 Cargo Targets Workspaces Features Features Examples Profiles 设置 环境变量 构建脚本 Build Script Examples 将 crate 发布到 Crates.io 包 ID 规格 更换源 外部工具 Registries Dependency Resolution SemVer Compatibility 不稳定功能 Cargo Commands General Commands cargo cargo help cargo version Build Commands cargo bench cargo build cargo check cargo clean cargo doc cargo fetch cargo fix cargo run cargo rustc cargo rustdoc cargo test Manifest Commands cargo generate-lockfile cargo locate-project cargo metadata cargo pkgid cargo tree cargo update cargo vendor cargo verify-project Package Commands cargo init cargo install cargo new cargo search cargo uninstall Publishing Commands cargo login cargo owner cargo package cargo publish cargo yank 参见问题 附录:术语白 Appendix: Git Authentication