#uuid #unique #rand #unique-identifier #global

nightly simple-uuid

A Simple Universally Unique IDentifier (UUID)

7 releases (4 breaking)

0.5.1 Aug 1, 2021
0.5.0 Jul 31, 2021
0.4.0 Jun 18, 2021
0.3.1 May 18, 2021
0.1.0 Mar 19, 2021

#78 in #unique-identifier

MIT license

22KB
496 lines

UUID

A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is also used.

This crate generates and inspects UUIDs based on RFC 4122.

Install

[dependencies]
simple-uuid = { version = "*", features = ["rand_num"] }

Usage

use simple_uuid::v4;
println!("{}", v4!())

Security

Do not assume that UUIDs are hard to guess; they should not be used as security capabilities.


lib.rs:

This crate defines a uniform resource name namespace for UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique Identifier). A UUID is 128 bits long, and can guarantee uniqueness across space and time.

[dependencies]
simple-uuid = { version = "*", features = ["rand_num"] }
use simple_uuid::v4;
println!("{}", v4!());

Dependencies

~0–560KB