atomic-snowflake 11.1.0

Zero-dependency lock-free monotonic 64-bit Snowflake ID, 128-bit ULID, and RFC 9562 UUIDv7 generators with stack-buffered Crockford Base32 and hyphenated hex codecs.
Documentation
/// Exact ASCII byte length of a canonical Crockford Base32 ULID string.
pub const ULID_STR_LEN: usize = 26;

pub(crate) const CROCKFORD_ENCODE: &[u8; 32] = b"0123456789ABCDEFGHJKMNPQRSTVWXYZ";
pub(crate) const CROCKFORD_DECODE: [u8; 256] = {
    let mut table: [u8; 256] = [0xff; 256];
    let mut i: usize = 0;
    while i < 32 {
        let ch: u8 = CROCKFORD_ENCODE[i];
        table[ch as usize] = i as u8;
        if ch >= b'A' && ch <= b'Z' {
            table[(ch + 32) as usize] = i as u8;
        }
        i += 1;
    }
    table[b'O' as usize] = 0;
    table[b'o' as usize] = 0;
    table[b'I' as usize] = 1;
    table[b'i' as usize] = 1;
    table[b'L' as usize] = 1;
    table[b'l' as usize] = 1;
    table
};
pub(crate) const ULID_TS_MASK_48: u64 = (1u64 << 48) - 1;
pub(crate) const ULID_RAND_HI_MASK_16: u64 = 0xffff;