MCPcopy Index your code
hub / github.com/elast0ny/shared_memory

github.com/elast0ny/shared_memory @release-0.12.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release release-0.12.4 ↗ · + Follow
52 symbols 152 edges 9 files 26 documented · 50%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

create
called by 12
src/lib.rs
open
called by 12
src/lib.rs
size
called by 10
src/lib.rs
flink
called by 9
src/lib.rs
as_ptr
called by 8
src/lib.rs
os_id
called by 5
src/lib.rs
get_os_id
called by 4
src/lib.rs
set_owner
called by 3
src/lib.rs

Shape

Method 25
Function 18
Class 8
Enum 1

Languages

Rust100%

Modules by API surface

src/lib.rs18 symbols
src/windows.rs10 symbols
src/unix.rs7 symbols
tests/general.rs5 symbols
src/error.rs3 symbols
examples/mutex.rs3 symbols
examples/basic.rs3 symbols
tests/posix_semantics.rs2 symbols
examples/event.rs1 symbols

For agents

$ claude mcp add shared_memory \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact