mtid 0.6.1

Human-friendly id for personal distributed system (deprecated, use the caretta-id crate)
Documentation
#[macro_use]
mod macros;
use std::str::FromStr;

use mtid::Stid;
use rand::Rng;

impl_tests! {
    Self = Stid,
    Uint = u16,
}

#[test]
fn random_str() {
    for _ in 0..10 {
        let mut rng = rand::rng();
        let value = format!(
            "{}{}{}",
            rng.sample(rand::distr::Alphanumeric) as char,
            rng.sample(rand::distr::Alphanumeric) as char,
            rng.sample(rand::distr::Alphanumeric) as char,
        );
        let _ = Stid::from_str(&value).unwrap();
    }
}