A Rust implementation of a BSON ObjectId.
Based on zonyitoo/bson-rs
Modifications:
serde
serialize and deserialize support.Add dependency to Cargo.toml
toml
[dependencies]
objectid = "^0.1"
If you want serde
support, enable the serde
feature:
toml
[dependencies]
objectid = { version = "^0.1", 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 for details.