4 releases (1 stable)
1.0.0 | Jul 3, 2021 |
---|---|
0.2.0 | Mar 15, 2021 |
0.1.2 | Nov 19, 2020 |
0.1.1 | Oct 10, 2020 |
#958 in Text processing
5,297 downloads per month
Used in 28 crates
(24 directly)
4KB
random-string
A simple crate that allows you to generate random strings based on a given charset and length.
Usage
Add a dependence in Cargo.toml
[dependencies]
random-string = "1.0"
Example
use random_string::generate;
fn main() {
let charset = "1234567890";
println!("[{}]", generate(6, charset));
}
Dependencies
~33KB