#bson #object #mongo-db #id

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

#22 in #mongo

Download history 1/week @ 2024-11-20 2/week @ 2024-11-27 6/week @ 2024-12-04 43/week @ 2024-12-11 7/week @ 2024-12-18 12/week @ 2025-01-08 31/week @ 2025-01-15 8/week @ 2025-01-22 114/week @ 2025-01-29 131/week @ 2025-02-05 22/week @ 2025-02-12 1/week @ 2025-02-19 37/week @ 2025-02-26

197 downloads per month
Used in arthas

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

~4.5MB
~59K SLoC