A Nargo Package is a collection of one of more crates. A Package must include a Nargo.toml file.
A Package must contain either a library or a binary crate.
A new package is created using the
$ nargo new my-project $ ls my-project Nargo.toml src $ ls my-project/src main.nr
Similar to Cargo, Nargo follows the convention that if there is a
src/main.nr then the project is a binary. If it contains a
src/lib.nr then it is a library.
However, note that dissimilar to Cargo, we cannot have both a binary and library in the same project.