Adding random_string library as a dependency

Run this command in a terminal, in your project's directory:

cargo add random-string

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

random-string = "1.1.0"

The random_string library will be automatically available globally. Read the random_string library documentation.

Back to the crate overview.