title: error[E0433]: failed to resolve: use of undeclared crate or module
body: <p>I add the models when using rust diesel as ORM like this:</p>
  <pre><code>use rocket::serde::Serialize;
  use rocket::serde::Deserialize;
  
  #[derive(Insertable, Serialize, Queryable, Deserialize,Default)]
  #[table_name = &quot;dict&quot;]
  pub struct QueryEdict {
      pub id: i64,
      pub word: String,
      pub phonetic: String,
      pub definition: String,
      pub translation: String,
      pub pos: String,
      pub collins: String,
      pub oxford: String,
      pub tag: String,
      pub bnc: i32,
      pub frq: i32,
      pub exchange: String,
      pub detail: String,
      pub audio: String,
  }
  </code></pre>
  <p>and generate <code>scheme.rs</code> like this:</p>
  <pre><code>table! {
      dict (id) {
          word -&gt; Nullable&lt;Varchar&gt;,
          phonetic -&gt; Nullable&lt;Varchar&gt;,
          definition -&gt; Nullable&lt;Varchar&gt;,
          translation -&gt; Nullable&lt;Varchar&gt;,
          pos -&gt; Nullable&lt;Varchar&gt;,
          collins -&gt; Nullable&lt;Int4&gt;,
          oxford -&gt; Nullable&lt;Int4&gt;,
          tag -&gt; Nullable&lt;Varchar&gt;,
          bnc -&gt; Nullable&lt;Int4&gt;,
          frq -&gt; Nullable&lt;Int4&gt;,
          exchange -&gt; Nullable&lt;Varchar&gt;,
          detail -&gt; Nullable&lt;Varchar&gt;,
          audio -&gt; Nullable&lt;Varchar&gt;,
          id -&gt; Int4,
      }
  }
  </code></pre>
  <p>the <code>main.rs</code> look like this:</p>
  <pre><code>#[macro_use] extern crate rocket;
  
  #[macro_use]
  extern crate diesel;
  
  mod schema;
  mod models;
  
  #[get(&quot;/&lt;id&gt;&quot;)]
  fn index(id:&amp;str) -&gt; &amp;'static str {
      return &quot;ok&quot;;
  }
  
  #[launch]
  fn rocket() -&gt; _ {
      rocket::build().mount(&quot;/&quot;, routes![index])
  }
  </code></pre>
  <p>and this is the dependencies:</p>
  <pre><code>[package]
  name = &quot;rust-learn&quot;
  version = &quot;0.1.0&quot;
  edition = &quot;2018&quot;
  
  [dependencies]
  rocket = { version = &quot;0.5.0-rc.1&quot;, features = [&quot;json&quot;] }
  serde = { version = &quot;1.0.64&quot;, features = [&quot;derive&quot;] }
  serde_json = &quot;1.0.64&quot;
  serde_derive = &quot;1.0&quot;
  # database
  diesel = { version = &quot;1.4.7&quot;, features = [&quot;postgres&quot;] }
  dotenv = &quot;0.15.0&quot;
  jsonwebtoken = &quot;7&quot;
  chrono = &quot;0.4&quot;
  </code></pre>
  <p>when I build the project, shows error like this:</p>
  <pre><code>error[E0433]: failed to resolve: use of undeclared crate or module `dict`
   --&gt; src/models.rs:5:16
    |
  5 | #[table_name = &quot;dict&quot;]
    |                ^^^^^^ use of undeclared crate or module `dict`
  
  error: aborting due to previous error
  
  For more information about this error, try `rustc --explain E0433`.
  error: could not compile `rust-learn`
  </code></pre>
  <p>am I missing something? what should I do to fix this problem?</p>