n00b here. I don't understand what the difference is between cargo new
and cargo init
. According to The Cargo Book,
cargo-new - Create a new Cargo package
cargo-init - Create a new Cargo package in an existing directory
new
creates a new Cargo package in a new directory using the name you pass it cargo new hello_cargo
while init
creates a new Cargo package in the current directory.
Is that it? Am I understanding this correctly, or is there more to it?