Join my Laravel for REST API's course on Udemy 👀

Use `init` to create a Cargo package in the current folder

June 2, 2022  ‐ 1 min read

To set up a new Cargo package you probably reach cargo new first. However, this operation requires you to supply a path.

If you need to create a Cargo package in an already existing directory you should be using cargo init instead. Which can set up a package in the current directory.

$ cd folder
$ cargo init
  Created binary (application) package