[go: up one dir, main page]

uuid 1.3.0

A library to generate and parse UUIDs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Generating a random UUID.
//!
//! If you enable the `v4` feature you can generate random UUIDs.

#[test]
#[cfg(feature = "v4")]
fn generate_random_uuid() {
    use uuid::Uuid;

    let uuid = Uuid::new_v4();

    assert_eq!(Some(uuid::Version::Random), uuid.get_version());
}

fn main() {}