title: How can I get cargo to recompile changed files automatically?
body: <p>I have heard cargo has the ability to automatically recompile changed source files, but I'm having a hard time figuring out how to tell it to do so.</p>
  
  <p>For now, I am manually running <code>cargo build</code> or <code>cargo run</code> every time I want to type check my code. I would prefer to instead simply save the file and see the results in the neighboring terminal window.</p>
  
  <p>In case you still have no idea what I'm talking about, I'm looking for the cargo equivalent of <code>sbt ~compile</code> or <code>sbt ~run</code>.</p>
  
  <p>It seems strangely hard to find, so I'm starting to wonder if it's really supported. It's possible someone had said cargo could detect changed files and recompile them when what he meant to say was that cargo could detect <em>unchanged</em> files and <em>avoid</em> recompiling them, like <code>make</code>.</p>