Cargo new vs. cargo init

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?

1 Like

That's it.

2 Likes

Wow lol thought there would be more. Thanks for confirming, Alice!

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.