Skip to main content

atomic_snowflake/uuidv7/
const.rs

1/// Exact ASCII byte length of a hyphenated canonical UUID string.
2pub const UUID_STR_LEN: usize = 36;
3
4pub(crate) const HEX_LOWER: &[u8; 16] = b"0123456789abcdef";
5pub(crate) const UUID_V7_VERSION_NIBBLE: u64 = 0x7000;
6pub(crate) const UUID_V7_SEQ_MASK: u64 = 0x0fff;
7pub(crate) const UUID_VARIANT_RFC4122_HI: u64 = 0x8000_0000_0000_0000;
8pub(crate) const UUID_RAND_B_MASK: u64 = 0x3fff_ffff_ffff_ffff;