mutex
Run this command in a terminal, in your project's directory:
cargo add mutex
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
mutex = "1.0.2"
The mutex library will be automatically available globally. Read the mutex library documentation.
Back to the crate overview.