#shmem #shared #memory #inter-process #process

shared_memory

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

13 releases

new 0.12.2 Nov 27, 2021
0.12.0 Aug 7, 2021
0.11.4 Dec 27, 2020
0.11.3 Sep 19, 2020
0.8.0 Jun 15, 2018

#16 in Memory management

Download history 482/week @ 2021-08-10 516/week @ 2021-08-17 558/week @ 2021-08-24 422/week @ 2021-08-31 542/week @ 2021-09-07 545/week @ 2021-09-14 555/week @ 2021-09-21 527/week @ 2021-09-28 589/week @ 2021-10-05 825/week @ 2021-10-12 762/week @ 2021-10-19 553/week @ 2021-10-26 686/week @ 2021-11-02 987/week @ 2021-11-09 1446/week @ 2021-11-16 1821/week @ 2021-11-23

5,194 downloads per month
Used in 7 crates (6 directly)

MIT/Apache

33KB
651 lines

shared_memory

Build Status crates.io mio Lines of Code

A crate that allows you to share memory between processes.

This crate provides lightweight wrappers around shared memory APIs in an OS agnostic way. It is intended to be used with it's sister crate raw_sync which provide simple primitves to synchronize access to the shared memory (Mutex, RwLock, Events, etc...).

raw_sync
crates.io docs.rs

Usage

For usage examples, see code located in examples/ :

Examples Description
event Shows the use of shared events through shared memory
mutex Shows the use of a shared mutex through shared memory

License

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.3–31MB
~478K SLoC