| Crates.io | uwuid |
| lib.rs | uwuid |
| version | 0.3.1 |
| created_at | 2022-07-22 13:37:45.660883+00 |
| updated_at | 2022-07-22 15:25:59.952416+00 |
| description | Like UUIDs or ULIDs, but better |
| homepage | |
| repository | |
| max_upload_size | |
| id | 630802 |
| size | 15,507 |
Like UUIDs or ULIDs, but better
Add the following to your Cargo.toml:
uwuid = "0.3.1"
// 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();
MIT OR Apache-2.0 © bs2k