Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joymoe/fastid-rs
Snowflake-like ID generating in Rust
https://github.com/joymoe/fastid-rs
Last synced: 3 days ago
JSON representation
Snowflake-like ID generating in Rust
- Host: GitHub
- URL: https://github.com/joymoe/fastid-rs
- Owner: JoyMoe
- License: mit
- Created: 2020-06-03T09:52:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T11:08:02.000Z (about 1 year ago)
- Last Synced: 2024-04-25T08:20:35.682Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastID-rs
[![Crates.io](https://img.shields.io/crates/v/fastid)](http://crates.io/crates/fastid)
[![Docs.rs](https://docs.rs/fastid/badge.svg)](https://docs.rs/fastid)
[![Crates.io](https://img.shields.io/crates/d/fastid)](http://crates.io/crates/fastid)
[![Crates.io](https://img.shields.io/crates/l/fastid)](https://github.com/JoyMoe/FastID-rs/blob/master/LICENSE)Snowflake-like ID generating in Rust
## Usage
```rust
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](LICENSE)