Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 635 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 635 Bytes

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