Crates.io | fastid |
lib.rs | fastid |
version | 0.3.3 |
source | src |
created_at | 2020-06-03 10:07:17.066249 |
updated_at | 2023-11-23 11:08:05.416692 |
description | Snowflake-like ID generating in Rust |
homepage | https://github.com/JoyMoe/FastID-rs |
repository | https://github.com/JoyMoe/FastID-rs |
max_upload_size | |
id | 249597 |
size | 10,535 |
Snowflake-like ID generating in Rust
use fastid::FastIdWorker;
let mut worker = FastIdWorker::new(1);
let id = worker.next_id();
println!("{:#064b}", id);
println!("{}", id);
The MIT License
More info see LICENSE