lib.rs
IdGenerator
4,121 downloads per month . MIT license . 43KB 859 lines. IdGenerator. A powerful unique id generator. ATTENTION: Now this crate has upgraded to v2, meaning most of the interfaces in v1 is deprecated. If you still want to use v1, please see branch v1.You can also see deprecated.md for how to use v1.. Shorter ID and faster generation with a new snowflake drift algorithm.
unique_id
Crate unique_id. A trait and implementations for unique ID generators. This crate provides four simple traits, starting with Generator. This will return successive unique identifiers, the only requirement of an identifier being that it implements PartialEq. Each implemented generator is in its own feature, by default all of which are included.
tagid
72 downloads per month . MIT license . 120KB 2K SLoC tagid - Typed Unique Identifiers for Rust Entities. tagid provides a robust system for defining and managing typed unique identifiers in Rust. It supports multiple ID generation strategies (CUID, UUID, Snowflake) and integrates seamlessly with serde, sqlx, and other frameworks.. Features. Typed Identifiers: Define entity-specific IDs with ...
machineid-rs
After that, you just need to add the components you want the id to have. The available components are: System UUID: Unique identifier of your machine. CPU Cores: Number of physical cores from your computer. OS Name: Operative System name, i.e., linux/windows. Username: The username currently being used. Machine Name: The name of the machine
twitter_snowflake
228 downloads per month . MIT license . 19KB 216 lines. ️ Snowflake. Snowflake is a lightweight, efficient Rust library that implements Twitter's Snowflake algorithm for generating unique, time-based IDs. Designed for distributed systems, it provides a scalable solution to ID generation, ensuring no collisions even across multiple workers.
Uuid
A UUID is a unique 128-bit value, stored as 16 octets, and regularly formatted as a hex string in five groups. UUIDs are used to assign unique identifiers to entities without requiring a central allocating authority. They are particularly useful in distributed systems, though can be used in disparate areas, such as databases and network protocols.