1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 14:55:51 +02:00

cargo: add French translation (#9103)

* cargo: add french translation

* add a french translation to cargo main documentation

* cargo: correct spelling mistake

* cargo: corect spelling mistakes

* cargo: improve comand description
This commit is contained in:
Antoine Amara 2022-11-03 15:57:46 +01:00 committed by GitHub
parent 29d99d6684
commit 93efd1fa64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

37
pages.fr/common/cargo.md Normal file
View file

@ -0,0 +1,37 @@
# cargo
> Gestion d'un projet Rust et ses dependences (crates).
> Certaines sous-commandes comme `cargo build` ont leurs propres documentations.
> Plus d'informations : <https://crates.io/>.
- Rechercher des crates :
`cargo search {{recherche}}`
- Installer un crate :
`cargo install {{nom_du_crate}}`
- Lister les crates déjà installés :
`cargo install --list`
- Créer un nouveau binaire ou librairie du projet Rust dans le dossier courant :
`cargo init --{{bin|lib}}`
- Créer un nouveau binaire ou librairie du projet Rust dans un dossier spécifique :
`cargo new {{chemin/vers/dossier}} --{{bin|lib}}`
- Compiler le projet Rust dans le dossier courant :
`cargo build`
- Compiler le projet Rust dans le dossier courant en utilisant le compilateur nightly :
`cargo +nightly build`
- Compiler en utilisant un nombre spécifique de threads (par défaut on prend le nombre de coeurs du CPU) :
`cargo build --jobs {{nombre_de_threads}}`