I am new to Rust and attempting to build a test project with Cargo. My Cargo.toml
looks like:
[package]
name = "rust-play"
version = "0.0.1"
authors = [ "Bradley Wogsland <omitted>" ]
(but the actual TOML file doesn't omit my email). When I cargo build
I am getting the following error:
error: failed to parse manifest at
/Users/wogsland/Projects/rust-play/Cargo.toml
Caused by: no targets specified in the manifest either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present
My main
function is in a src/test.rs
file. Do I need to specify that in the TOML file? If so, how? I tried adding
target = "src/test.rs"
to no avail.