oats
Short, unique ids without the hassle of random uuids.
Thanks
- Inspired from https://github.com/BinChengZhao/snowflake-rs.
Getting started
Adding library to project
Using it to generate unique identifiers
use ;
use SystemTime;
let wrapped_bowl = of;
let oat = wrapped_bowl.generate;
assert_eq!;
Syntax of Oats
When using ToString, the Oat object is displayed in a mixed format that includes the node ID and a local unique identifier (LUID) with a timestamp and sequence ID. The LUID is encoded as a URL-safe base64 string without padding.
const ENGINE: FastPortable = from;
format!