Crates.io | tq-code-generator-core |
lib.rs | tq-code-generator-core |
version | 0.1.1 |
source | src |
created_at | 2023-04-07 07:24:44.757909 |
updated_at | 2023-04-11 09:42:15.271178 |
description | The Rust library developed by ToolQuarry that Secure, efficient, and easy to use, it's the ideal solution for generating unique codes of all kinds. |
homepage | https://github.com/toolquarry/tq-code-generator-core |
repository | https://github.com/toolquarry/tq-code-generator-core |
max_upload_size | |
id | 832810 |
size | 4,481 |
TQ Code Generator Core is a Rust library for generating random codes of varying lengths. It was created to power the code generation tools at ToolQuarry, but it can be used in any Rust project that needs to generate unique codes.
Add tq-code-generator-core to your project's Cargo.toml file:
[dependencies]
tq-code-generator-core = "0.1.0"
Here's an example of how to use tq-code-generator-core to generate a random code:
use tq_code_generator_core::generate_random_code;
fn main() {
let code = generate_random_code(8);
println!("{}", code);
}
This project is licensed under the MIT License - see the LICENSE file for details.