nanoid-wasm 0.1.0

NanoId for wasm
Documentation
nanoid-wasm-0.1.0 has been yanked.

NanoId for wasm

Usage

# Cargo.toml



[dependencies]

nanoid-wasm = { path="../../nanoid-wasm", features=["not-wasm"] }

// in_your_rust.rs

let size = 21;
let id: String = nanoid_wasm::nanoid(size);
println!("{}", id); // 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.

Also Look