talira

Generate and parse UUIDs in Rust

open sourceMIT OR Apache-2.0free

uuid is the Rust crate for generating and parsing UUIDs, the 128-bit identifiers that let systems assign unique ids without a central authority. Crate features turn on the versions you need (random v4 ids, among others), a uuid! macro checks a UUID literal at compile time, and parsing needs no features at all. It follows RFC 9562 and is dual licensed under MIT or Apache 2.0.

Problems it solves

  • I need to generate unique ids for records in my Rust service
  • I want to parse and validate UUID strings in Rust
  • I want ids I can hand out from many machines without a central counter

Features

  • Generates random (v4) UUIDs and other versions behind crate features
  • Parses UUID strings with no features enabled
  • uuid! macro for compile-time checked UUID literals
  • Follows RFC 9562