1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages.fr/common/cargo-init.md
trouyer bd987b07ba
cargo-add, cargo-bench, cargo-build, cargo-init: add French translation (#14129)
* 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>
2024-10-13 17:59:58 +02:00

735 B

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}}