1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
objectid
========
[](https://docs.rs/objectid)
A Rust implementation of a BSON ObjectId.
Based on [zonyitoo/bson-rs](https://github.com/zonyitoo/bson-rs/blob/master/src/oid.rs)
Modifications:
1. 2.
Add dependency to Cargo.toml
```toml
[dependencies]
objectid = "^0.2"
```
If you want `serde` support, enable the `serde` feature:
```toml
[dependencies]
objectid = { version = "^0.2", features = ["serde"] }
```
In your `main.rs` or `lib.rs`:
```rust
extern crate objectid;
```
objectid is primarily distributed under the terms of the MIT license.
See [LICENSE](LICENSE) for details.