From 79804c01e60cc92cce5ff365b6d05ec20812aba7 Mon Sep 17 00:00:00 2001 From: Eric Kidd Date: Mon, 9 Jul 2018 08:20:11 -0400 Subject: [PATCH] Add extra hint about `diesel` setup --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 119f234..c352c7d 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,12 @@ libsqlite3-sys = { version = "*", features = ["bundled"] } openssl = "*" ``` +For PostgreSQL, you'll also need to include `openssl` in your `main.rs` (in order to avoid linker errors): + +```toml +extern crate openssl; +``` + See [this PR](https://github.com/sgrif/pq-sys/pull/18) for a discussion of the issues involved in cross-compiling `diesel` and `diesel_codegen`. ## Making static releases with Travis CI and GitHub