uuid Provides support for Universally Unique Identifiers (UUIDs). A UUID is a unique 128-bit number, stored as 16 octets. UUIDs are used to assign unique identifiers to entities without requiring a central allocating authority.
By default, this crate depends on nothing but
std and cannot generate UUIDs. You need to enable the following Cargo features to enable various pieces of functionality:
v1- adds the
Uuid::new_v1function and the ability to create a V1 using an implementation of
v1::Context) and a timestamp from
v3- adds the
Uuid::new_v3function and the ability to create a V3 UUID based on the MD5 hash of some data.
v4- adds the
Uuid::new_v4function and the ability to randomly generate a UUID.
v5- adds the
Uuid::new_v5function and the ability to create a V5 UUID based on the SHA1 hash of some data.
serde- adds the ability to serialize and deserialize a UUID using the serde crate.
stdweb- for stdweb combined with cargo-web
wasm-bindgen- for wasm-bindgen
By default, uuid can be depended on with:
To activate various features, use syntax like:
You can disable default features with: