1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-29 15:55:31 +02:00
tldr/pages.fr/common/cargo-add.md

33 lines
990 B
Markdown
Raw Normal View History

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
# 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`