#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

#13 in #mongo

Download history 15/week @ 2021-10-01 310/week @ 2021-10-08 190/week @ 2021-10-15 248/week @ 2021-10-22 190/week @ 2021-10-29 67/week @ 2021-11-05 45/week @ 2021-11-12 105/week @ 2021-11-19 49/week @ 2021-11-26 28/week @ 2021-12-03 32/week @ 2021-12-10 122/week @ 2021-12-17 82/week @ 2021-12-24 65/week @ 2021-12-31 55/week @ 2022-01-07 21/week @ 2022-01-14

229 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
~49K SLoC