title: How can I build Rust code with a C++/Qt/CMake project?
body: <p>I have an existing C++/Qt <a href="http://github.com/Cockatrice/Cockatrice">project</a> built with CMake. I'd like to start adding Rust code which I can invoke from inside the main C++ codebase.</p>
  
  <p>What's the right way to structure the project?</p>
  
  <p>Current project structure:</p>
  
  <pre class="lang-none prettyprint-override"><code>./CMakeLists.txt
  ./subproject-foo/CMakeLists.txt
  ./subproject-foo/src/...
  ./subproject-bar/CmakeLists.txt
  ./subproject-bar/src/...
  ./common/CMakeLists.txt
  ./common/src/...
  </code></pre>
  
  <p>I'd like to add a <code>common-rust/...</code> directory with similar structure.</p>
  
  <p>How can I incorporate this into the project?</p>