mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 17:42:31 +00:00
15 lines
371 B
Plaintext
15 lines
371 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|