【文件属性】:
文件名称:cool-id-generator
文件大小:72KB
文件格式:ZIP
更新时间:2021-04-10 19:05:50
Rust
酷id生成器
这是一个no_std cool-id-generator。 它使人难忘。 诚实的涡轮裁缝师格雷戈里,浪漫的机器人鸡肉肯尼思和快乐的超咖啡师肖恩会赞成。
安装
只需将相应的条目添加到您的Cargo.toml依赖项列表中:
[ dependencies ]
cool-id-generator = " 1.0 "
测验
cargo test -- --nocapture
基准
cargo bench
running 3 tests
test tests::bench_id ... bench: 243 ns/iter (+/- 51)
test tests::bench_long_id ... bench: 298 ns/iter (+/- 63)
test tests::bench_very_long_id .
【文件预览】:
cool-id-generator-main
----.gitignore(19B)
----benches()
--------bench.rs(432B)
----src()
--------words()
--------lib.rs(5KB)
----LICENSE(1KB)
----Cargo.toml(474B)
----.github()
--------workflows()
----README.md(748B)