title: Rust Cargo does not automatically compile depended project in workspace
body: <p>I have a workspace with two projects as below</p>
  <pre><code>workspace/
  ├─ project-a/
  │  ├─ src/
  │  ├─ Cargo.toml
  ├─ project-b/
  │  ├─ src/
  │  ├─ Cargo.toml
  ├─ Cargo.toml
  </code></pre>
  <p>Project b depends on project a, it launches the binary file generated by project a with <code>std::process::Command</code>.</p>
  <p>In <code>/workspace/project-b/Cargo.toml</code>, I set the dependencies as below.</p>
  <pre><code>[dependencies]
  project-a = { path = &quot;../project-a&quot; }
  
  
  [dev-dependencies]
  project-a = { path = &quot;../project-a&quot; } 
  </code></pre>
  <p>And in <code>/workspace/Cargo.toml</code>, I set default entry to be project b.</p>
  <pre><code>[workspace]
  members = [
      &quot;project-a&quot;,
      &quot;project-b&quot;,
  ]
  default-members=[&quot;project-b&quot;]
  </code></pre>
  <p>It works well if I run <code>cargo run</code> in `/workspace`` directory,  project-b can successfully launches project-a as a child process.</p>
  <p>But when I modify the code in /workspace/project-a``, <code>cargo run</code> in <code>/workspace</code> directory will not compile the updated code. Still I need enter <code>/workspace/project-a/</code> directory and execute <code>cargo run</code> once more.</p>
  <p>How can I make <code>cargo run</code> in `/workspace`` directory automatically compiles its dependencies?</p>