title: How about using path["../xxx.rs"] to import a module?
body: <p>When I use the path way to import a module, I face a strange problem. The code may look like this:</p>
  <pre><code>#[path = &quot;../../models.rs&quot;]
  mod models;
  </code></pre>
  <p>This would work. But somebody told me that this way is not recommended. To better understand the Rust import, I have the following questions:</p>
  <ul>
  <li>In what situation we should using <code>#[path = &quot;../../xxx.rs&quot;]</code> to import a module?</li>
  <li>What are the advantages and disadvantages of this way to import module?</li>
  <li>Should we avoid using this way to import module in future?</li>
  </ul>
  <p>I searched the Internet, but nobody seem to have these questions.</p>