1 unstable release
0.1.0 | Jan 14, 2021 |
---|
#1332 in Data structures
21KB
474 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
Install
[dependencies]
simid = { version = "0.1.0", features = ["random"] }
Usage
use simid::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]
uuid = { version = "0.1.0", features = ["random"] }
use simid::v4;
fn main() {
println!("{}", v4!());
}
Dependencies
~0–540KB