Registry / utility / antidote

antidote

JSON →
library1.0.0rscratesunverified

Provides poison-free versions of the standard library Mutex and RwLock types.

# Cargo.toml [dependencies] antidote = "1.0.0"
INSTALL
IMPORT
SIG · ANTIDOTE
A
antidote
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mutex
use antidote::Mutex;

Uses a poison-free Mutex to safely share mutable data.

use antidote::Mutex; fn main() { let data = Mutex::new(42); *data.lock() = 100; println!("{}", *data.lock()); }
Debug
Known issues
gotchaNo poisoning means panics in locks leave data in inconsistent state
fix
Use std::sync::Mutex if you need poisoning protection.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
OpenAI (training)
2
Meta
1
Resources
antidote — cargo add antidote · libregistry