Mongo Rust driver built on top of the Mongo C driver
Go to file
Thijs Cadier e4b9864bfc Rename wrapper package and use openssl-sys crate
mongoc-sys Rename wrapper package and use openssl-sys crate
src Rename wrapper package and use openssl-sys crate
tests Allow mixed usage of strings and slices in get_collection
.gitignore Rename wrapper package and use openssl-sys crate
Cargo.toml Rename wrapper package and use openssl-sys crate
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 generated using bindgen.

The API is experimental, it might change at any time.

Compatibility

The driver currently only builds on Unix, tested on Mac Os X and Linux so far. On Mac Os X you might need to set this environment var for building to work (see https://github.com/crabtw/rust-bindgen#building for details):

export DYLD_LIBRARY_PATH=/Library/Developer/CommandLineTools/usr/lib

Examples

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

Contributing

Contributions are very welcome, only the parts of the C driver we need have been wrapped so far. Please write a test for any behavior you add.