title: How to use a local unpublished crate?
body: <p>I've made a library:</p>
  
  <pre><code>cargo new my_lib
  </code></pre>
  
  <p>and I want to use that library in a different program:</p>
  
  <pre><code>cargo new my_program --bin
  </code></pre>
  
  
  
  <pre><code>extern crate my_lib;
  
  fn main {
      println!("Hello, World!");
  }
  </code></pre>
  
  <p>what do I need to do to get this to work?</p>
  
  <p>They aren't in the same project folder.</p>
  
  <pre><code>.
  ├── my_lib
  └── my_program
  </code></pre>
  
  <p>Hopefully this makes sense.</p>
  
  <p>I thought I'd be able to override the path as per the <a href="http://doc.crates.io/guide.html">Cargo guide</a>, but it states</p>
  
  <blockquote>
    <p>You cannot use this feature to tell Cargo how to find local unpublished crates.</p>
  </blockquote>
  
  <p>This is when using the latest stable version of Rust (1.3).</p>