blob: dc12812533f95351ebce238b0c15db594646042b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//! Generating a sortable UUID.
//!
//! If you enable the `v7` feature you can generate sortable UUIDs.
#[test]
#[cfg(feature = "v7")]
fn generate_sortable_uuid() {
use uuid::Uuid;
let uuid = Uuid::now_v7();
assert_eq!(Some(uuid::Version::SortRand), uuid.get_version());
}
fn main() {}
|