From ba12c5bc668149dac1cf038c3cbe9d32b9753bea Mon Sep 17 00:00:00 2001 From: Thijs Cadier Date: Sun, 11 Jun 2017 23:28:41 +0200 Subject: [PATCH 1/3] Use openssl when compiling --- mongoc-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoc-sys/build.rs b/mongoc-sys/build.rs index b02b741..296f226 100644 --- a/mongoc-sys/build.rs +++ b/mongoc-sys/build.rs @@ -37,7 +37,7 @@ fn main() { // Configure and install let mut command = Command::new("sh"); command.arg("configure"); - command.arg("--enable-ssl=yes"); + command.arg("--enable-ssl=openssl"); command.arg("--enable-sasl=no"); command.arg("--enable-static=yes"); command.arg("--enable-shared=no"); From de99a727d13a4814d73e9eb2314dec5fe36aeaaf Mon Sep 17 00:00:00 2001 From: Thijs Cadier Date: Mon, 12 Jun 2017 11:33:46 +0200 Subject: [PATCH 2/3] Implement Send for Uri --- src/client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.rs b/src/client.rs index 48ddedb..e2c59c8 100644 --- a/src/client.rs +++ b/src/client.rs @@ -401,3 +401,5 @@ impl Drop for Uri { } } } + +unsafe impl Send for Uri { } From 1773d6440477e1f240766004aaeb6e29d9c0026f Mon Sep 17 00:00:00 2001 From: Thijs Cadier Date: Mon, 12 Jun 2017 11:37:59 +0200 Subject: [PATCH 3/3] Implement Sync for Uri --- src/client.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.rs b/src/client.rs index e2c59c8..3d65629 100644 --- a/src/client.rs +++ b/src/client.rs @@ -403,3 +403,4 @@ impl Drop for Uri { } unsafe impl Send for Uri { } +unsafe impl Sync for Uri { }