Registry / utility / sync-wrapper

sync-wrapper

JSON →
library1.0.2rscratesunverified

A tool for enlisting the compiler's help in proving the absence of concurrency issues by wrapping types to enforce single-threaded usage.

# Cargo.toml [dependencies] sync_wrapper = "1.0.2"
INSTALL
IMPORT
SIG · SYNC-WRAPPER
S
sync-wrapper
utilityrustv1.0.2
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.

SyncWrapper
use sync_wrapper::SyncWrapper;

Wraps a value to ensure it is only accessed from a single thread, leveraging the type system to prevent data races.

use sync_wrapper::SyncWrapper; fn main() { let wrapper = SyncWrapper::new(42); let value: i32 = wrapper.into_inner(); println!("{}", value); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
Resources
sync-wrapper — cargo add sync-wrapper · libregistry