1#![cfg_attr(not(target_family = "wasm"), deny(missing_docs))]
32
33#[cfg(target_family = "wasm")]
34compile_error!(
35 "rig-memvid does not currently support `wasm` targets: memvid-core requires \
36 synchronous file I/O and OS-level file locks. Disable rig-memvid for wasm \
37 builds via Cargo target-specific dependencies."
38);
39
40#[cfg(not(target_family = "wasm"))]
41mod cards_context;
42#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
43mod compactor;
44#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
45mod dedup;
46#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
47mod demotion;
48#[cfg(not(target_family = "wasm"))]
49mod error;
50#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
51mod frame_writer;
52#[cfg(not(target_family = "wasm"))]
53mod hook;
54#[cfg(not(target_family = "wasm"))]
55pub mod inmem;
56#[cfg(not(target_family = "wasm"))]
57mod memory_graph;
58#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
59pub mod metadata;
60#[cfg(all(not(target_family = "wasm"), feature = "context-projection"))]
61pub mod projection;
62#[cfg(all(not(target_family = "wasm"), feature = "context-projection"))]
63pub use projection::{
64 IntoContextItem, MemoryCandidate, MemoryContextPack, SupersededCandidate,
65 card_docs_to_context_items, inmem_hits_to_context_items, items_to_memory_candidates,
66 memory_cards_to_context_items, search_hits_to_context_items, supersede,
67};
68#[cfg(not(target_family = "wasm"))]
69mod store;
70
71#[cfg(not(target_family = "wasm"))]
72pub use cards_context::{CardDoc, CardSelection, MemoryCardContext};
73#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
74pub use compactor::MemvidStoringCompactor;
75#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
76pub use demotion::MemvidDemotionHook;
77#[cfg(not(target_family = "wasm"))]
78pub use error::MemvidError;
79#[cfg(not(target_family = "wasm"))]
80pub use hook::{
81 MemoryConfig, MemoryConfigBuilder, MemvidPersistHook, WriteFailure, WriteFailureAction,
82 WriteFailurePhase, WritePolicy, WriteTransform,
83};
84#[cfg(not(target_family = "wasm"))]
85pub use inmem::{Episode, InMemoryError, InMemoryHit, InMemoryStore};
86#[cfg(not(target_family = "wasm"))]
87pub use memory_graph::MemoryGraph;
88#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
89pub use metadata::{FrameKind, MemvidFrameMetadata};
90#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
94pub use rig::memory::{Compactor, DemotionHook, MemoryError};
95#[cfg(all(not(target_family = "wasm"), feature = "compaction"))]
96pub use rig_memory::{CompactingMemory, TemplateCompactor, TextSummary};
97#[cfg(not(target_family = "wasm"))]
98pub use store::{MemvidFilter, MemvidStore, MemvidStoreBuilder};
99
100#[cfg(not(target_family = "wasm"))]
101pub use memvid_core::types::{LogicMeshStats, SearchHitEntity};
102#[cfg(not(target_family = "wasm"))]
108pub use memvid_core::{
109 EntityKind, FollowResult, MemoryCard, MemoryCardId, MemoryKind, MeshEdge, MeshNode, Polarity,
110 VersionRelation,
111};
112
113#[cfg(not(target_family = "wasm"))]
114pub use memvid_core;