title: How to specify the path to a Cargo.toml
body: <p>I'm new to Rust and I want to build and run my project. I use something like:</p>
  
  <pre><code>cd %project_path%
  cargo run
  </code></pre>
  
  <p>I want to be able to write <code>cargo run -path %project_path%</code> in a single line because I want to create a build script that doesn't allow changing the working directory. It seems that cargo doesn't have any <code>-path</code> or <code>-target</code> keys, which would define target directory, and I always get the message</p>
  
  <blockquote>
    <p>could not find <code>Cargo.toml</code> in <code>C:\WINDOWS\system32</code> or any parent
    directory</p>
  </blockquote>