heeranjid 0.1.2

Distributed ID generation — HeerId (64-bit) and RanjId (128-bit UUIDv8) with configurable precision
Documentation

heeranjid

HeerRanjId ([ɦiːɾ.ɾaːnd͡ʒ.ɪd])

Core Rust types for HeerRanjId.

  • HeerId: compact 64-bit Snowflake-style identifier, stored as bigint
  • RanjId: UUIDv8-compatible 128-bit upgrade format with sub-millisecond precision, stored as uuid
  • conversion helpers between the two formats
use heeranjid::{HeerId, RanjId, RanjPrecision};

let heer = HeerId::new(1_000, 7, 42)?;
let ranj = RanjId::new(1_000_000, RanjPrecision::Microseconds, 7, 42)?;
# Ok::<(), heeranjid::Error>(())

For project-level documentation and database integrations, see the repository README and docs directory.