Cargo Toml
The Cargo.toml
is the config file for cargo
for the project
[package]
name = "foo"
version = "0.1.0"
authors = ["mark"]
[dependencies]
- The
name
field under[package]
determines the name of the project - The
version
field is a crate version number using Semantic Versioning - The
authors
field is a list of authors used when publishing the crate - The
[dependencies]
section lets you add dependencies for your project