Mongo Rust driver built on top of the Mongo C driver
Go to file
Thijs Cadier 6243b4c0a2 Update libmongoc to 1.6.3
mongoc-sys Update libmongoc to 1.6.3
src Update links to C docs
tests Update links to C docs
.gitignore Keep track of bindings semi-manually
.travis.yml Skip extended bulk operation test on Travis
CHANGELOG.md Update changelog
Cargo.toml Update libmongoc to 1.6.3
LICENSE-APACHE Use dual Apache/MIT license
LICENSE-MIT Use dual Apache/MIT license
README.md Link to docs on docs.rs

README.md

Mongo Rust Driver

Build Status Crate

Mongo Rust driver built on top of the Mongo C driver. This driver is a thin wrapper around the production-ready C driver that provides a safe and ergonomic Rust interface which handles all the gnarly usage details of the C driver for you.

Bson encoding and decoding is handled by the bson crate, the bindings are based on generated bindings by bindgen.

The API should still be considered experimental, but I'm not expecting changes at the moment.

Documentation

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.4 and has full replica set and SSL support.

Installation

If you have any trouble installing the crate (linking openssl can be tricky) please check out the installation instructions for the C driver.

Logging

All internal logging by mongoc is redirected to the macros in the log crate. See the log docs to configure output in your application.

Examples

See the tests directory for examples of how to use the driver.

License

Licensed under either of

at your option.

Contribution

Contributions are very welcome, only the functionality we use has been wrapped so far. Please write a test for any behavior you add.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.