Carstens Weblog

Apple-User. Nerd. Gamer. Born 336ppm

[23:00] Wenn man verhindern will, dass cargo new .git-Verzeichnisse innerhalb neu erstellter Pakete anlegt, geht man wie folgt vor.

Entweder man fügt den Parameter --vcs none hinzu: cargo new <name> --vcs none

oder aber global, dann muss man der cargo-Konfiguration (typischerweise ~/.cargo/config.toml, (andere Optionen sind auch gültig) folgendes hinzufügen:

[cargo-new]
vcs = "none"

Erledigt.

Tags: #rust-lang