272 B
272 B
cargo new
创建一个新的 Cargo 包。 相当于
cargo init
,但需要指定目录。 更多信息:https://doc.rust-lang.org/cargo/commands/cargo-new.html。
- 创建一个新的 Rust 项目,带有二进制目标:
cargo new {{path/to/directory}}