Uwuid

standard-readme compliant Crates.io Crates.io Crates.io

Like UUIDs or ULIDs, but better

Install

Add the following to your Cargo.toml: toml uwuid = "0.3.1"

Usage

rs // Create a uwuid: let id = uwuid::UwuId::new(); // Convert it to a string: // 😳d😳,,afa,,d🤗;sa😳sdk😍ghf,ldjddlsa let foo = format!("{}", id); // Parse a uwuid from a string: let bar: uwuid::UwuId = foo.parse().unwrap(); // You can get the creation time of a uwuid, too! let time = id.time();

License

MIT OR Apache-2.0 © bs2k