mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 09:13:49 +02:00
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>
This commit is contained in:
parent
3b95dd8011
commit
bd987b07ba
4 changed files with 125 additions and 0 deletions
32
pages.fr/common/cargo-add.md
Normal file
32
pages.fr/common/cargo-add.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# cargo add
|
||||
|
||||
> Ajoute des dépendences au manifeste `Cargo.toml` d'un projet Rust.
|
||||
> Plus d'informations : <https://doc.rust-lang.org/cargo/commands/cargo-add.html>.
|
||||
|
||||
- Ajoute la dernière version d'une dépendance au projet courant :
|
||||
|
||||
`cargo add {{dépendance}}`
|
||||
|
||||
- Ajoute une version spécifique d'une dépendance :
|
||||
|
||||
`cargo add {{dépendance}}@{{version}}`
|
||||
|
||||
- Ajoute une dépendance et active une ou plusieures fonctionnalités :
|
||||
|
||||
`cargo add {{dépendance}} --features {{fonctionnalité_1}},{{fonctionnalité_2}}`
|
||||
|
||||
- Ajoute une dépendance optionnelle, qui sera exposée comme une fonctionnalité du crate :
|
||||
|
||||
`cargo add {{dépendance}} --optional`
|
||||
|
||||
- Ajoute un crate local en tant que dépendance :
|
||||
|
||||
`cargo add --path {{chemin/vers/crate}}`
|
||||
|
||||
- Ajoute une dépendance de développement ou de compilation :
|
||||
|
||||
`cargo add {{dépendance}} --{{dev|build}}`
|
||||
|
||||
- Ajoute une dépendance avec toutes les fonctionnalités par défaut désactivées :
|
||||
|
||||
`cargo add {{dépendance}} --no-default-features`
|
36
pages.fr/common/cargo-bench.md
Normal file
36
pages.fr/common/cargo-bench.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# cargo bench
|
||||
|
||||
> Compile et exécute des benchmarks.
|
||||
> Plus d'informations : <https://doc.rust-lang.org/cargo/commands/cargo-bench.html>.
|
||||
|
||||
- Exécute tous les benchmarks d'un paquet :
|
||||
|
||||
`cargo bench`
|
||||
|
||||
- Ne pas arréter quand un benchmark échoue :
|
||||
|
||||
`cargo bench --no-fail-fast`
|
||||
|
||||
- Compile, mais n'exécute pas les benchmarks :
|
||||
|
||||
`cargo bench --no-run`
|
||||
|
||||
- Exécute le benchmark spécifié :
|
||||
|
||||
`cargo bench --bench {{benchmark}}`
|
||||
|
||||
- Exécute les benchmarks avec un profile spécifique (défaut : `bench`) :
|
||||
|
||||
`cargo bench --profile {{profile}}`
|
||||
|
||||
- Exécute les benchmarks sur tous les exemples cibles :
|
||||
|
||||
`cargo bench --examples`
|
||||
|
||||
- Exécute les benchmarks sur tous les binaires cibles :
|
||||
|
||||
`cargo bench --bins`
|
||||
|
||||
- Exécute les benchmarks sur la bibliothèque du paquet :
|
||||
|
||||
`cargo bench --lib`
|
32
pages.fr/common/cargo-build.md
Normal file
32
pages.fr/common/cargo-build.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# cargo build
|
||||
|
||||
> Compile un paquet local et toutes ses dépendances.
|
||||
> Plus d'informations : <https://doc.rust-lang.org/cargo/commands/cargo-build.html>.
|
||||
|
||||
- Compile un ou plusieurs paquets définis dans le manifeste `Cargo.toml` dans le dossier local :
|
||||
|
||||
`cargo build`
|
||||
|
||||
- Compile les artefacts avec le mode publication, avec des optimisations :
|
||||
|
||||
`cargo build --release`
|
||||
|
||||
- Le fichier `Cargo.lock` doit être à jour :
|
||||
|
||||
`cargo build --locked`
|
||||
|
||||
- Compile tous les paquets de l'espace de travail :
|
||||
|
||||
`cargo build --workspace`
|
||||
|
||||
- Compile un paquet spécifique :
|
||||
|
||||
`cargo build --package {{paquet}}`
|
||||
|
||||
- Compile uniquement le binaire spécifié :
|
||||
|
||||
`cargo build --bin {{nom_du_binaire}}`
|
||||
|
||||
- Compile uniquement le test cible spécifié :
|
||||
|
||||
`cargo build --test {{nom_du_test}}`
|
25
pages.fr/common/cargo-init.md
Normal file
25
pages.fr/common/cargo-init.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue