#unique-id #id-generator #growing #yeast

yeast-rs

Tiny but linear growing unique id generator

1 unstable release

0.3.0 Jul 20, 2021

#4 in #growing

Download history 21/week @ 2024-11-29 51/week @ 2024-12-06 7/week @ 2024-12-13 3/week @ 2024-12-20 34/week @ 2024-12-27 50/week @ 2025-01-03 55/week @ 2025-01-10 33/week @ 2025-01-17 14/week @ 2025-01-24 24/week @ 2025-01-31 14/week @ 2025-02-07 40/week @ 2025-02-14 37/week @ 2025-02-21 46/week @ 2025-02-28 27/week @ 2025-03-07 81/week @ 2025-03-14

200 downloads per month

MIT license

27KB
553 lines

yeast-rs

Tiny but linear growing unique id generator.
Rust implementation of the JS package - yeast

Usage

Install

[dependencies]
yeast-rs = "0.1.0"

Simple

This crate has one function yeast which return Yeast a URL-safe unique id.

use yeast_rs::yeast;

fn main() {
   let id = yeast().to_string(); //=> "NgqS4Rd"
}

async support

Currently, we support tokio and async-std

[dependencies]
yeast-rs = {version ="0.1.0",features=["async-std-runtime"]}
use yeast_rs::async_std::yeast;
async fn func(){
   let id = yeast().await.to_string(); //=> "NgqS4Rd"
}

Dependencies

~1–11MB
~141K SLoC