puid 0.1.1

A library for generating and parsing PUIDs (Prefixed Unique Identifiers).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Prefixed Unique Identifier (PUID) Generator

## Overview

This project generates prefixed IDs that can be used as unique identifiers in various applications. Inspired by Stripe, it allows for the creation of type-safe IDs with a specific prefix and a randomly generated 22 character suffix composed of a base62 encoded 128 bit random number.

## Usage

```rs
puid::puid!(UserId = "usr");

fn main() {
    let user_id = UserId::new();
    println!("Generated User ID: {}", user_id); // e.g., usr_45A0IQarTgXyiRM6VQ9YbX
}
```