title: ld: library not found for -lpq when build rust in macOS
body: <p>When I build my rust project in macOS with apple sillicon using this command:</p>
  <pre><code>CARGO_HTTP_MULTIPLEXING=false cargo build
  </code></pre>
  <p>shows error like this:</p>
  <pre><code>  = note: ld: library not found for -lpq
            clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  <p>I have tried to install</p>
  <pre><code>brew install libpq
  brew link --force libpq
  </code></pre>
  <p>still did not fix this problem, what should I do to fix this problem? Is it the PostgreSQL lib did not support Apple Sillicon(Apple M1 Pro) right now? This is my project dependencies:</p>
  <pre><code>[package]
  name = &quot;reddwarf_dict&quot;
  version = &quot;0.1.0&quot;
  edition = &quot;2018&quot;
  
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  
  [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;
  # database
  diesel = { version = &quot;1.4.7&quot;, features = [&quot;postgres&quot;] }
  dotenv = &quot;0.15.0&quot;
  chrono = &quot;0.4&quot;
  log = &quot;0.4&quot;
  env_logger = &quot;0.9.0&quot;
  config = &quot;0.11&quot;
  rust_wheel = &quot;0.1.0&quot;
  </code></pre>