https://github.com/elast0ny/shared_memory
A Rust wrapper around native shared memory for Linux and Windows
https://github.com/elast0ny/shared_memory
rust shared-memory
Last synced: 2 months ago
JSON representation
A Rust wrapper around native shared memory for Linux and Windows
- Host: GitHub
- URL: https://github.com/elast0ny/shared_memory
- Owner: elast0ny
- Created: 2018-04-18T23:04:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T01:02:16.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T11:26:57.758Z (8 months ago)
- Topics: rust, shared-memory
- Language: Rust
- Homepage:
- Size: 315 KB
- Stars: 382
- Watchers: 5
- Forks: 51
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
Awesome Lists containing this project
- awesome-rust-list - elast0ny/shared_memory
- awesome-rust-list - elast0ny/shared_memory
README
# shared_memory
[](https://github.com/elast0ny/shared_memory-rs/actions?query=workflow%3Abuild)
[](https://crates.io/crates/shared_memory)
[](https://docs.rs/shared_memory/)
[](https://tokei.rs/b1/github/elast0ny/shared_memory-rs?category=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](https://github.com/elast0ny/raw_sync-rs) which provide simple primitves to synchronize access to the shared memory (Mutex, RwLock, Events, etc...).
| raw_sync |
|----|
|[](https://crates.io/crates/raw_sync) [](https://docs.rs/raw_sync/)|## Usage
For usage examples, see code located in [examples/](examples/) :
| Examples | Description |
|----------|-------------|
|[event](examples/event.rs)| Shows the use of shared events through shared memory|
|[mutex](examples/mutex.rs)| Shows the use of a shared mutex through shared memory|## License
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
* [MIT license](http://opensource.org/licenses/MIT)## 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.