5 个版本
| 0.4.3 | 2022 年 2 月 24 日 |
|---|---|
| 0.4.2 | 2022 年 2 月 15 日 |
| 0.4.1 | 2022 年 2 月 15 日 |
| 0.1.1 | 2021 年 7 月 4 日 |
| 0.1.0 | 2021 年 7 月 4 日 |
#4 在 #nanoid
每月 327 次下载
在 2 个包中使用 (通过 statehub-id)
7KB
80 行
nanoid-dictionary
与 nanoid::nanoid!() 宏一起使用的流行字母表
use nanoid_dictionary::NOLOOKALIKES;
use nanoid::nanoid;
fn main() {
let id = nanoid!(21, NOLOOKALIKES);
println!("{}", id);
}
lib.rs:
与 nanoid::nanoid!() 宏一起使用的流行字母表
use nanoid_dictionary::NOLOOKALIKES;
use nanoid::nanoid;
let id = nanoid!(21, NOLOOKALIKES);
assert_eq!(id.len(), 21);
println!("{}", id);