Registry / utility / force-send-sync

force-send-sync

JSON →
library2.0.0rscratesunverified

Unsafe wrappers to force Send and Sync traits on types.

# Cargo.toml [dependencies] force-send-sync = "2.0.0"
INSTALL
IMPORT
SIG · FORCE-SEND-SYNC
F
force-send-sync
utilityrustv2.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.

ForceSend
use force_send_sync::ForceSend;

Wraps a value to force Send.

use force_send_sync::ForceSend; let value = ForceSend::new(42);
Debug
Known issues
gotchaUsing ForceSend or ForceSync can lead to undefined behavior if the wrapped type is not actually Send/Sync.
fix
Ensure the wrapped type is safe to send/sync across threads.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
force-send-sync — cargo add force-send-sync · libregistry