diff --git a/lib/src/fnc/rand.rs b/lib/src/fnc/rand.rs index b6c6aa91..b28e222e 100644 --- a/lib/src/fnc/rand.rs +++ b/lib/src/fnc/rand.rs @@ -134,6 +134,7 @@ pub mod uuid { Ok(Uuid::new_v4().into()) } + #[cfg(uuid_unstable)] pub fn v7(_: ()) -> Result { Ok(Uuid::new_v7().into()) } diff --git a/lib/src/sql/uuid.rs b/lib/src/sql/uuid.rs index f2d938a3..7c777e47 100644 --- a/lib/src/sql/uuid.rs +++ b/lib/src/sql/uuid.rs @@ -51,6 +51,7 @@ impl Uuid { Self(uuid::Uuid::new_v4()) } /// Generate a new V7 UUID + #[cfg(uuid_unstable)] pub fn new_v7() -> Self { Self(uuid::Uuid::now_v7()) }