You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2021. It is now read-only.
This branch contains active development on a new driver written for Rust 1.0.
6
+
This branch contains active development on a new driver written for Rust 1.x.
9
7
10
8
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.
11
9
12
-
## Installation
10
+
Installation
11
+
------------
13
12
14
13
#### Dependencies
15
-
-[Rust 1.0 with Cargo](http://rust-lang.org)
14
+
15
+
-[Rust 1.x with Cargo](http://rust-lang.org)
16
16
17
17
#### Importing
18
-
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```:
18
+
19
+
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`:
20
+
19
21
```
20
22
[dependencies]
21
-
bson = "0.1.3"
23
+
bson = "0.1.4"
22
24
mongodb = "0.1.0"
23
25
```
24
26
25
27
Then, import the bson and driver libraries within your code.
28
+
26
29
```rust
27
30
#[macro_use(bson, doc)]
28
31
externcrate bson;
29
32
externcrate mongodb;
30
33
```
31
34
32
-
## Examples
35
+
Examples
36
+
--------
33
37
34
38
Here's a basic example of driver usage:
35
39
@@ -69,5 +73,7 @@ fn main() {
69
73
}
70
74
```
71
75
72
-
## Documentation
73
-
Documentation is built using Cargo. The latest documentation can be found [here](https://mongodb-labs.github.io/mongo-rust-driver-prototype/mongodb). Generated documentation using ```cargo doc``` can be found under the _target/doc/_ folder.
76
+
Documentation
77
+
-------------
78
+
79
+
Documentation is built using Cargo. The latest documentation can be found [here](https://mongodb-labs.github.io/mongo-rust-driver-prototype/mongodb). Generated documentation using `cargo doc` can be found under the *target/doc/* folder.
0 commit comments