nightly unik

A Powerful Universally Unique Identifier (UUID)

9 releases

0.3.0 Feb 20, 2023
0.2.9 Oct 30, 2022
0.2.7 May 27, 2022
0.2.6 Apr 24, 2022
0.1.0 Jan 23, 2022

#970 in Algorithms

MIT license

25KB
652 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 project is in the development stage. All API's might change without warning and no guarantees are given about stability. DO NOT USE IN PRODUCTION.

This crate generates and inspects UUIDs based on

Install

[dependencies]

unik = { version = "*", features=["rand"] }

Usage

fn main() {
    println!("{}", unik::UUID::v4().new());
}

Security

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


lib.rs:

This crate defines a powerful uniform resource name namespace for UUIDs (Universally Unique Identifier), which are suited for modern use.

This lib can be used to create unique and reasonably short values without requiring extra knowledge.

A UUID is 128 bits long, and can guarantee uniqueness across space and time.

Dependencies

~0–730KB
~11K SLoC