@@ -251,11 +251,11 @@ mod v3;
251251mod v4;
252252#[ cfg( feature = "v5" ) ]
253253mod v5;
254- #[ cfg( all ( uuid_unstable , feature = "v6" ) ) ]
254+ #[ cfg( feature = "v6" ) ]
255255mod v6;
256- #[ cfg( all ( uuid_unstable , feature = "v7" ) ) ]
256+ #[ cfg( feature = "v7" ) ]
257257mod v7;
258- #[ cfg( all ( uuid_unstable , feature = "v8" ) ) ]
258+ #[ cfg( feature = "v8" ) ]
259259mod v8;
260260
261261#[ cfg( feature = "md5" ) ]
@@ -312,16 +312,12 @@ pub enum Version {
312312 /// Version 5: SHA-1 hash.
313313 Sha1 = 5 ,
314314 /// Version 6: Sortable Timestamp and node ID.
315- #[ cfg( uuid_unstable) ]
316315 SortMac = 6 ,
317316 /// Version 7: Timestamp and random.
318- #[ cfg( uuid_unstable) ]
319317 SortRand = 7 ,
320318 /// Version 8: Custom.
321- #[ cfg( uuid_unstable) ]
322319 Custom = 8 ,
323320 /// The "max" (all ones) UUID.
324- #[ cfg( uuid_unstable) ]
325321 Max = 0xff ,
326322}
327323
@@ -575,13 +571,9 @@ impl Uuid {
575571 3 => Some ( Version :: Md5 ) ,
576572 4 => Some ( Version :: Random ) ,
577573 5 => Some ( Version :: Sha1 ) ,
578- #[ cfg( uuid_unstable) ]
579574 6 => Some ( Version :: SortMac ) ,
580- #[ cfg( uuid_unstable) ]
581575 7 => Some ( Version :: SortRand ) ,
582- #[ cfg( uuid_unstable) ]
583576 8 => Some ( Version :: Custom ) ,
584- #[ cfg( uuid_unstable) ]
585577 0xf => Some ( Version :: Max ) ,
586578 _ => None ,
587579 }
@@ -851,7 +843,6 @@ impl Uuid {
851843 }
852844
853845 /// Tests if the UUID is max (all ones).
854- #[ cfg( uuid_unstable) ]
855846 pub const fn is_max ( & self ) -> bool {
856847 self . as_u128 ( ) == u128:: MAX
857848 }
@@ -911,13 +902,11 @@ impl Uuid {
911902
912903 Some ( Timestamp :: from_rfc4122 ( ticks, counter) )
913904 }
914- #[ cfg( uuid_unstable) ]
915905 Some ( Version :: SortMac ) => {
916906 let ( ticks, counter) = timestamp:: decode_sorted_rfc4122_timestamp ( self ) ;
917907
918908 Some ( Timestamp :: from_rfc4122 ( ticks, counter) )
919909 }
920- #[ cfg( uuid_unstable) ]
921910 Some ( Version :: SortRand ) => {
922911 let millis = timestamp:: decode_unix_timestamp_millis ( self ) ;
923912
@@ -1184,7 +1173,6 @@ mod tests {
11841173 }
11851174
11861175 #[ test]
1187- #[ cfg( uuid_unstable) ]
11881176 #[ cfg_attr(
11891177 all(
11901178 target_arch = "wasm32" ,
0 commit comments