mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* Add some french translation for cargo * lint * revert package-lock * Update pages.fr/common/cargo-add.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-add.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-init.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-init.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-init.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-init.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-init.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-bench.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * Update pages.fr/common/cargo-build.md Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> * fix typo --------- Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com>
25 lines
735 B
Markdown
25 lines
735 B
Markdown
# cargo init
|
|
|
|
> Crée un nouveau paquet Cargo.
|
|
> Équivalent de `cargo new`, mais où spécifier un dossier est optionnel.
|
|
> Plus d'informations : <https://doc.rust-lang.org/cargo/commands/cargo-init.html>.
|
|
|
|
- Initialise un projet Rust binaire dans le dossier courant :
|
|
|
|
`cargo init`
|
|
|
|
- Initailise un projet de binaire Rust dans le dossier spécifié :
|
|
|
|
`cargo init {{chemin/vers/dossier}}`
|
|
|
|
- Initialise un projet de bibliothèque Rust dans le dossier spécifié :
|
|
|
|
`cargo init --lib`
|
|
|
|
- Initialise un dépôt de système de gestion de version dans le dossier du projet (défaut : `git`) :
|
|
|
|
`cargo init --vcs {{git|hg|pijul|fossil|none}}`
|
|
|
|
- Défini le nom du paquet (défaut : nom du dossier):
|
|
|
|
`cargo init --name {{nom_du_paquet}}`
|