NanoId for wasm
Usage
# Cargo.toml
[]
= { ="../../nanoid-wasm", =["not-wasm"] }
// in_your_rust.rs
let size = 21;
let id: String = nanoid;
println!; // some random id with 21 characters;
Features
There are only two features: wasm and not-wasm.
Default feature imports nothing. Must designate either of wasm or not-wasm.
Demo Page (with leptos)
https://acheul.github.io/nanoid-wasm/
Also Look
- crate nanoid
- crate uuid
- They supports
jsfeature for wasm environment.
- They supports