Merge pull request #21 from thijsc/mongoc_153

Upgrade C driver to 1.5.3
pull/23/head
Thijs Cadier 8 years ago committed by GitHub
commit d0eb334ffc

@ -19,7 +19,7 @@ bson = "> 0.1.0"
[dependencies.mongoc-sys] [dependencies.mongoc-sys]
path = "mongoc-sys" path = "mongoc-sys"
version = "1.4.0" version = "1.5.3"
[dev-dependencies] [dev-dependencies]
chrono = "> 0.2.0" chrono = "> 0.2.0"

@ -14,7 +14,7 @@ The API should still be considered experimental, but I'm not expecting changes a
## Compatibility ## Compatibility
The driver currently only builds on Unix, tested on Mac Os X and Linux so far. It's compatible with MongoDB 2.4 up to 3.2 and The driver currently only builds on Unix, tested on Mac Os X and Linux so far. It's compatible with MongoDB 2.4 up to 3.4 and
has full replica set and SSL support. has full replica set and SSL support.
## Logging ## Logging

@ -1,6 +1,6 @@
[package] [package]
name = "mongoc-sys" name = "mongoc-sys"
version = "1.4.0" version = "1.5.3"
description = "Sys package with installer and bindings for mongoc" description = "Sys package with installer and bindings for mongoc"
authors = ["Thijs Cadier <thijs@appsignal.com>"] authors = ["Thijs Cadier <thijs@appsignal.com>"]
build = "build.rs" build = "build.rs"

@ -2,7 +2,7 @@ use std::env;
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
static VERSION: &'static str = "1.4.0"; // Should be the same major version as in the manifest static VERSION: &'static str = "1.5.3"; // Should be the same major version as in the manifest
fn main() { fn main() {
let out_dir_var = env::var("OUT_DIR").unwrap(); let out_dir_var = env::var("OUT_DIR").unwrap();

@ -228,8 +228,5 @@ fn test_insert_failure() {
let result = collection.insert(&document, None); let result = collection.insert(&document, None);
assert!(result.is_err()); assert!(result.is_err());
assert_eq!( assert!(format!("{:?}", result.err().unwrap()).contains("No suitable servers found"));
"MongoError (BsoncError: Unknown/Unknown - No suitable servers found: `serverSelectionTimeoutMS` expired: [connection timeout calling ismaster on 'localhost:27018'])",
format!("{:?}", result.err().unwrap())
);
} }

Loading…
Cancel
Save