cargo-init (1) Linux Manual Page
NAME
cargo-init – Create a new cargo package in the current directory
SYNOPSIS
cargo init [OPTIONS]
DESCRIPTION
Create a new cargo package in the current directory.
Use the –vcs option to control the version control system to use.
OPTIONS
-h, –help- Print this message.
–vcsVCS- Initialize a new repository for the given version control system (git or hg) or do not initialize any version control at all (none) overriding a global configuration.
–bin- Use a binary instead of a library template.
–nameNAME- Set the resulting package name.
-v, –verbose- Use verbose output.
-q, –quiet- No output printed to stdout.
–colorWHEN- Coloring: auto, always, never.
EXAMPLES
Initialize a binary cargo package in the current directory
-
$
cargo init --bin
SEE ALSO
COPYRIGHT
This work is dual-licensed under Apache 2.0 and MIT terms. See COPYRIGHT file in the cargo source distribution.
