1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cargo-new.md
vitalmotif 1f8a4928f6
chore: fix some typos (#12530)
Signed-off-by: vitalmotif <zhangshengqiang@outlook.com>
2024-03-20 23:13:42 +11:00

278 B

cargo new

Create a new Cargo package. Equivalent of cargo init, but specifying a directory is required. More information: https://doc.rust-lang.org/cargo/commands/cargo-new.html.

  • Create a new Rust project with a binary target:

cargo new {{path/to/directory}}