Mongo Rust driver built on top of the Mongo C driver
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Thijs Cadier eac8a0aff6 Use mem::zeroed instead of mem::uninitialized 9 years ago
mongoc-sys Config for published crate 9 years ago
src Use mem::zeroed instead of mem::uninitialized 9 years ago
tests Skip extended bulk operation test on Travis 9 years ago
.gitignore Keep track of bindings semi-manually 9 years ago
.travis.yml Skip extended bulk operation test on Travis 9 years ago
Cargo.toml Config for published crate 9 years ago
LICENSE Initial version 9 years ago
README.md Config for published crate 9 years ago

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.

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.