title: How to cross compile from Mac to Linux?
body: <p>I wrote a little game using Rust, and I used <code>cargo build --release</code> to compile a release version on Mac.</p>
  
  <p>I tried to share this with my friend who is using Ubuntu, but when he tried to run the binary, he got the following error:</p>
  
  <pre class="lang-none prettyprint-override"><code>cannot execute binary file: Exec format error
  </code></pre>
  
  <p>I searched for this but found no answers. Doesn't Rust claim to have "no runtime"? Shouldn't it be able to run anywhere in binary form?</p>