fastid

Crates.iofastid
lib.rsfastid
version0.3.3
sourcesrc
created_at2020-06-03 10:07:17.066249
updated_at2023-11-23 11:08:05.416692
descriptionSnowflake-like ID generating in Rust
homepagehttps://github.com/JoyMoe/FastID-rs
repositoryhttps://github.com/JoyMoe/FastID-rs
max_upload_size
id249597
size10,535
Chino Chang (kinosang)

documentation

https://docs.rs/fastid

README

FastID-rs

Crates.io Docs.rs Crates.io Crates.io

Snowflake-like ID generating in Rust

Usage

use fastid::FastIdWorker;

let mut worker = FastIdWorker::new(1);

let id = worker.next_id();

println!("{:#064b}", id);
println!("{}", id);

License

The MIT License

More info see LICENSE

Commit count: 14

cargo fmt