#mongo #mongodb #object #id #bson

objectid

A Rust implementation of a BSON ObjectId

2 unstable releases

Uses old Rust 2015

0.2.0 Feb 20, 2017
0.1.0 Dec 14, 2016

#18 in #bson

Download history 47/week @ 2022-03-09 19/week @ 2022-03-16 93/week @ 2022-03-23 46/week @ 2022-03-30 44/week @ 2022-04-06 32/week @ 2022-04-13 44/week @ 2022-04-20 69/week @ 2022-04-27 59/week @ 2022-05-04 54/week @ 2022-05-11 28/week @ 2022-05-18 19/week @ 2022-05-25 82/week @ 2022-06-01 28/week @ 2022-06-08 75/week @ 2022-06-15 45/week @ 2022-06-22

232 downloads per month
Used in 2 crates

MIT license

12KB
284 lines

objectid

docs

A Rust implementation of a BSON ObjectId.

Based on zonyitoo/bson-rs

Modifications:

  1. Improve performance.
  2. Add serde serialize and deserialize support.

Document

Usage

Add dependency to Cargo.toml

[dependencies]
objectid = "^0.2"

If you want serde support, enable the serde feature:

[dependencies]
objectid = { version = "^0.2", features = ["serde"] }

In your main.rs or lib.rs:

extern crate objectid;

License

objectid is primarily distributed under the terms of the MIT license. See LICENSE for details.


lib.rs:

A Rust implementation of a BSON ObjectId.

Dependencies

~3.5MB
~51K SLoC