rusty-snowflake
rusty-snowflake is a Rust library for generating and parsing snowflake IDs.
Features
- Generate unique snowflake IDs based on timestamp, worker ID, and sequence number.
- Parse snowflake IDs to retrieve timestamp, worker ID, and sequence number.
Installation
Add the following dependency to your Cargo.toml
file:
[]
= "0.1.0"
Or run the following in your project directory
Usage
use Snowflake;
Contributions
Contributions and feedback are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License.