failed to parse manifest - no targets specified
<p>I am new to Rust and attempting to build a test project with Cargo. My <code>Cargo.toml</code> looks like:</p>

<pre><code>[package]
name = "rust-play"
version = "0.0.1"
authors = [ "Bradley Wogsland &lt;omitted&gt;" ]
</code></pre>

<p>(but the actual TOML file doesn't omit my email). When I <code>cargo build</code> I am getting the following error:</p>

<blockquote>
  <p>error: failed to parse manifest at <code>/Users/wogsland/Projects/rust-play/Cargo.toml</code></p>
  
  <p>Caused by:
    no targets specified in the manifest
    either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present</p>
</blockquote>

<p>My <code>main</code> function is in a <code>src/test.rs</code> file. Do I need to specify that in the TOML file? If so, how? I tried adding</p>

<pre><code>target = "src/test.rs"
</code></pre>

<p>to no avail.</p>