1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 07:46:02 +02:00
tldr/pages/common/cargo-new.md

10 lines
279 B
Markdown
Raw Normal View History

# cargo new
> Create a new Cargo package.
> Equivalent of `cargo init`, but specifiying 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}}`