Registry / networking / shared-memory

shared-memory

JSON →
library0.12.4rscratesunverified

A user friendly crate that allows you to share memory between processes.

# Cargo.toml [dependencies] shared_memory = "0.12.4"
INSTALL
IMPORT
SIG · SHARED-MEMORY
S
shared-memory
networkingrustv0.12.4
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.

SharedMemory
use shared_memory::*;

Minimal shared memory usage.

use shared_memory::*; fn main() { let mut mem = SharedMemory::create("my_shm", 1024).unwrap(); mem.write(b"Hello").unwrap(); println!("Written to shared memory"); }
Debug
Known issues
gotchaShared memory requires proper synchronization between processes.
fix
Use mutexes or other synchronization primitives.
affects: >=0.12.0
Upgrade
Version history
0.12.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
shared-memory — cargo add shared-memory · libregistry