id-gnrt-rust-impl-0.1.0 is not a library.
id-gnrt-rust-impl
A Rust implementation of the Snowflake ID generator algorithm. This project provides a fast, thread-safe way to generate unique, time-ordered 64-bit IDs, inspired by Twitter's Snowflake.
Features
- Generates unique 64-bit IDs based on timestamp, datacenter, machine, and sequence.
- Thread-safe and efficient.
- Custom epoch for compact IDs.
Usage
Add this crate to your Cargo.toml:
[]
= "0.1.0"
Example usage:
use Snowflake;
let generator = new;
let id = generator.next_id;
println!;
License
MIT