2个版本
0.1.1 | 2023年4月11日 |
---|---|
0.1.0 | 2023年4月7日 |
2157 在 开发工具
每月24次下载
3KB
TQ Code Generator Core
TQ Code Generator Core 是一个用于生成不同长度的随机代码的Rust库。它被创建用于为ToolQuarry的代码生成工具提供动力,但也可以在任何需要生成唯一代码的Rust项目中使用。
安装
将 tq-code-generator-core 添加到项目的 Cargo.toml 文件中
[dependencies]
tq-code-generator-core = "0.1.0"
用法
以下是如何使用 tq-code-generator-core 生成随机代码的示例
use tq_code_generator_core::generate_random_code;
fn main() {
let code = generate_random_code(8);
println!("{}", code);
}
许可证
本项目采用MIT许可证 - 详细内容请参阅LICENSE文件。
依赖关系
~310KB