obid 0.1.0

A Rust implementation of the ObjectId data type as defined in the BSON specification.
Documentation

This crate provides an implementation of the ObjectId data type as defined in the BSON specification.

Usage

Simply add obid to your Cargo.toml and use the ObjectId type.

use obid::ObjectId;

// Create a new ObjectId
let id = ObjectId::new();

// Or parse an existing one
let id: ObjectId = "536f6d652073656372657420".parse().unwrap();

Features

  • archive: Enables serialization/deserialization using the rkyv crate.