Adding pcg_rand library as a dependency
Run this command in a terminal, in your project's directory:
cargo add --dev pcg_rand
to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:
cargo add pcg_rand
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
pcg_rand = "0.13.0"
The pcg_rand library will be automatically available globally.
Read the pcg_rand library documentation.
Back to the crate overview.