uwuid 0.3.1

Like UUIDs or ULIDs, but better
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 20.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 398.61 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bs2kbs2k

Uwuid

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

Like UUIDs or ULIDs, but better

Install

Add the following to your Cargo.toml:

uwuid = "0.3.1"

Usage

// 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