Crates.io | random-string |
lib.rs | random-string |
version | 1.1.0 |
source | src |
created_at | 2020-10-10 11:35:21.820213 |
updated_at | 2024-01-10 20:50:52.048953 |
description | Allows to generate random strings based on a given charset and length. |
homepage | |
repository | https://github.com/DmitrijVC/random-string |
max_upload_size | |
id | 297975 |
size | 5,304 |
A simple crate that allows you to generate random strings based on a given charset and length.
Add a dependence in Cargo.toml
[dependencies]
random-string = "1.0"
use random_string::generate;
fn main() {
let charset = "1234567890";
println!("[{}]", generate(6, charset));
}