uwuid

Crates.iouwuid
lib.rsuwuid
version0.3.1
created_at2022-07-22 13:37:45.660883+00
updated_at2022-07-22 15:25:59.952416+00
descriptionLike UUIDs or ULIDs, but better
homepage
repository
max_upload_size
id630802
size15,507
(bs2kbs2k)

documentation

README

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

Commit count: 0

cargo fmt