title: How to specify the path to a dependency located in my home directory in Cargo.toml?
body: <p>I want to use a local package which is located in my home directory. By default, Cargo searches for dependencies relative to Cargo.toml. If I know where my project is located relative to the home folder, I can do something like this:</p>
  <pre><code>[dependencies]
  tools = { path = &quot;../../rust_libs/tools&quot; }
  </code></pre>
  <p>I don't always know where my project is located and I would like to do something like this:</p>
  <pre><code>[dependencies]
  tools = { path = &quot;${HOME}/rust_libs/tools&quot; }
  </code></pre>
  <p>How can I get the home path inside of Cargo.toml? Maybe there are other ways to achieve this?</p>