| Crates.io | id-gnrt-rust-impl |
| lib.rs | id-gnrt-rust-impl |
| version | 0.1.0 |
| created_at | 2025-09-06 08:08:52.209618+00 |
| updated_at | 2025-09-06 08:08:52.209618+00 |
| description | A fast, thread-safe Rust implementation of the Snowflake ID generator algorithm. |
| homepage | https://github.com/NalinDalal/snowflake-rs |
| repository | https://github.com/NalinDalal/snowflake-rs |
| max_upload_size | |
| id | 1826873 |
| size | 9,741 |
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.
Add this crate to your Cargo.toml:
[dependencies]
id-gnrt-rust-impl = "0.1.0"
Example usage:
use id_gnrt_rust_impl::Snowflake;
let generator = Snowflake::new(1, 1);
let id = generator.next_id();
println!("Generated ID: {}", id);
MIT