Crate lolid

Source
Expand description

Minimal no_std UUID implementation.

§Features:

  • md5 - Enables v3;
  • orng - Enables v4 using OS random, allowing unique UUIDs;
  • prng - Enables v4 using pseudo random, allowing unique, but predictable UUIDs;
  • sha1 - Enables v5;
  • serde - Enables serde support;
  • std - Enables usages of std facilities like getting current time.

Structs§

TextRepr
Textual representation of UUID
Timestamp
Timestamp for use with v1 algorithm.
Uuid
Universally unique identifier, consisting of 128-bits, as according to RFC4122

Enums§

ParseError
Error happening when parsing invalid uuid.
Version
The version of the UUID, denoting the generating algorithm.

Constants§

NAMESPACE_DNS
When this namespace is specified, the name string is a fully-qualified domain name
NAMESPACE_OID
When this namespace is specified, the name string is an ISO OID
NAMESPACE_URL
When this namespace is specified, the name string is a URL
NAMESPACE_X500
When this namespace is specified, the name string is an X.500 DN in DER or a text output format.