Mongo Rust driver built on top of the Mongo C driver
Go to file
Thijs Cadier 9c86079f87 Remove test of error message that can vary between MongoDB versions
mongoc-sys Tweak comments
src Convert bson json to String directly
tests Remove test of error message that can vary between MongoDB versions
.gitignore Keep track of bindings semi-manually
.travis.yml Add Travis config
Cargo.toml Use durations instead of ms for sleeps
LICENSE Initial version
README.md Update readme

README.md

Mongo Rust Driver

About

Mongo Rust driver built on top of the Mongo C driver. This drivers aims to be a thin wrapper around the production-ready C driver, while providing a safe and ergonomic Rust interface that 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.

Compatibility

The driver currently only builds on Unix, tested on Mac Os X and Linux so far.

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.

Contributing

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