Skip to main content

shm_primitives/
lib.rs

1pub mod bipbuf;
2pub mod bootstrap;
3mod loom_tests;
4pub mod peer;
5pub mod region;
6pub mod segment;
7pub mod slot;
8pub mod sync;
9pub mod varslot_pool;
10
11pub use bipbuf::{
12    BIPBUF_HEADER_SIZE, BipBuf, BipBufConsumer, BipBufFull, BipBufHeader, BipBufProducer, BipBufRaw,
13};
14pub use peer::{PeerEntry, PeerId, PeerState};
15pub use region::HeapRegion;
16pub use region::Region;
17pub use segment::{MAGIC, SEGMENT_HEADER_SIZE, SEGMENT_VERSION, SegmentHeader, SegmentHeaderInit};
18pub use slot::{SlotState, VarSlotMeta};
19pub use varslot_pool::{
20    ClassOffsets, DoubleFreeError, PoolLayout, SizeClassConfig, SlotRef, VarSlotPool,
21};
22
23// OS-level primitives for SHM
24#[cfg(unix)]
25mod unix;
26#[cfg(unix)]
27pub use unix::*;
28
29#[cfg(windows)]
30mod windows;
31#[cfg(windows)]
32pub use windows::*;