Browse Source

cargo: add German translation (#4664)

Daniel Wolbach 4 years ago
parent
commit
978233510e
1 changed files with 33 additions and 0 deletions
  1. 33 0
      pages.de/common/cargo.md

+ 33 - 0
pages.de/common/cargo.md

@@ -0,0 +1,33 @@
+# cargo
+
+> Rust Paketmanager.
+> Verwalte Rust-Projekte und deren Abhängigkeiten (crates).
+> Mehr Informationen: <https://crates.io/>.
+
+- Suche nach Abhängigkeiten (crates):
+
+`cargo search {{suchwort}}`
+
+- Installiere eine Abhängigkeit (crate):
+
+`cargo install {{abhängigkeits_name}}`
+
+- Liste alle installierten Abhängigkeiten (crates) auf:
+
+`cargo install --list`
+
+- Erzeuge eine neues Rust-Projekt als Anwendung oder Bibliothek im aktuellen Verzeichnis:
+
+`cargo init --{{bin|lib}}`
+
+- Erzeuge eine neues Rust-Projekt als Anwendung oder Bibliothek im angegebenen Verzeichnis:
+
+`cargo new {{pfad/zum/verzeichnis}} --{{bin|lib}}`
+
+- Erstelle (bzw. kompiliere) das Rust-Projekt im aktuellen Verzeichnis:
+
+`cargo build`
+
+- Erstelle (bzw. kompiliere) mit einer bestimmten Anzahl an Threads (Standard ist die Anzahl der CPU-Kerne):
+
+`cargo build -j {{jobs}}`