Lines Matching full:uuid

1 uuid  section
4 [![Latest Version](https://img.shields.io/crates/v/uuid.svg)](https://crates.io/crates/uuid)
5 …[Join the chat at https://gitter.im/uuid-rs/Lobby](https://badges.gitter.im/Join%20Chat.svg)](http…
7 …yor.com/api/projects/status/github/uuid-rs/uuid?branch=master&svg=true)](https://ci.appveyor.com/p…
8 [![Build Status](https://travis-ci.org/uuid-rs/uuid.svg?branch=master)](https://travis-ci.org/uuid-…
9 …ttps://isitmaintained.com/badge/resolution/uuid-rs/uuid.svg)](https://isitmaintained.com/project/u…
10 …pen](https://isitmaintained.com/badge/open/uuid-rs/uuid.svg)](https://isitmaintained.com/project/u…
17 Provides support for Universally Unique Identifiers (UUIDs). A UUID is a
23 disparate areas, such as databases and network protocols. Typically a UUID
34 [`Uuid`]s. You need to enable the following Cargo features to enable
37 * `v1` - adds the `Uuid::new_v1` function and the ability to create a V1
38 using an implementation of `uuid::v1::ClockSequence` (usually
39 `uuid::v1::Context`) and a timestamp from `time::timespec`.
40 * `v3` - adds the `Uuid::new_v3` function and the ability to create a V3
41 UUID based on the MD5 hash of some data.
42 * `v4` - adds the `Uuid::new_v4` function and the ability to randomly
43 generate a `Uuid`.
44 * `v5` - adds the `Uuid::new_v5` function and the ability to create a V5
45 UUID based on the SHA1 hash of some data.
46 * `serde` - adds the ability to serialize and deserialize a `Uuid` using the
57 By default, `uuid` can be depended on with:
61 uuid = "0.8"
68 uuid = { version = "0.8", features = ["serde", "v4"] }
75 uuid = { version = "0.8", default-features = false }
80 To parse a UUID given in the simple format and print it as a urn:
83 use uuid::Uuid;
85 fn main() -> Result<(), uuid::Error> {
87 Uuid::parse_str("936DA01F9ABD4d9d80C702AF85C822A8")?;
93 To create a new random (V4) UUID and print it out in hexadecimal form:
96 // Note that this requires the `v4` feature enabled in the uuid crate.
98 use uuid::Uuid;
101 let my_uuid = Uuid::new_v4();
113 * urn: `urn:uuid:F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4`
118 * [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace]( http://tools.ietf.org/html/r…
122 [`Uuid`]: https://docs.rs/uuid/0.8.2/uuid/struct.Uuid.html