1 unstable release

0.3.0 Jul 20, 2021

#3 in #growing

Download history 31/week @ 2024-08-26 37/week @ 2024-09-02 67/week @ 2024-09-09 12/week @ 2024-09-16 94/week @ 2024-09-23 23/week @ 2024-09-30 14/week @ 2024-10-07 12/week @ 2024-10-14 115/week @ 2024-10-21 176/week @ 2024-10-28 10/week @ 2024-11-04 18/week @ 2024-11-11 33/week @ 2024-11-18 20/week @ 2024-11-25 53/week @ 2024-12-02 17/week @ 2024-12-09

128 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
~123K SLoC