MongoDB Rust Driver Prototype
This branch contains active development on a new driver written for Rust 1.x.
The API and implementation are currently subject to change at any time. You must not use this driver in production as it is still under development and is in no way supported by MongoDB Inc. We absolutely encourage you to experiment with it and provide us feedback on the API, design, and implementation. Bug reports and suggestions for improvements are welcomed, as are pull requests.
Installation
Dependencies
Importing
The 1.0 driver is available on crates.io. To use the MongoDB driver in your code, add the bson and mongodb packages to your Cargo.toml
:
[dependencies]
bson = "0.1.4"
mongodb = "0.1.0"
Then, import the bson and driver libraries within your code.
extern crate bson;
extern crate mongodb;
Examples
Here's a basic example of driver usage:
use Bson;
use ;
use ThreadedDatabase;
Documentation
Documentation is built using Cargo. The latest documentation can be found here. Generated documentation using cargo doc
can be found under the target/doc/ folder.