Crates.io | yeast-rs |
lib.rs | yeast-rs |
version | 0.3.0 |
source | src |
created_at | 2021-07-20 23:24:21.626856 |
updated_at | 2021-07-20 23:24:21.626856 |
description | Tiny but linear growing unique id generator. |
homepage | |
repository | https://github.com/CfirTsabari/yeast-rs |
max_upload_size | |
id | 425324 |
size | 58,402 |
[dependencies]
yeast-rs = "0.1.0"
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"
}
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"
}