Registry / async / dark-std

dark-std

JSON →
library0.2.16rscratesunverified

Implementation of asynchronous containers built on tokio using a read-write separation design borrowed from Golang

# Cargo.toml [dependencies] dark-std = "0.2.16"
INSTALL
IMPORT
SIG · DARK-STD
D
dark-std
asyncrustv0.2.16
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.

RwLock
use dark_std::sync::RwLock;

Use an async RwLock with tokio runtime

use dark_std::sync::RwLock; #[tokio::main] async fn main() { let lock = RwLock::new(42); let val = *lock.read().await; println!("{}", val); }
Debug
Known issues
gotchaRequires tokio runtime to be active
fix
Use #[tokio::main] or manually create a tokio runtime
affects: >=0.1.0
Upgrade
Version history
0.2.16latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
OpenAI (training)
1
Resources
dark-std — cargo add dark-std · libregistry