Skip to main content

clm_rust_core/layer2/
mod.rs

1//! Layer 2: Content-Addressed Storage, VFS, Merkle DAG & Fibers
2//! Canonical Path: kernel/clm_rust_core/src/layer2/mod.rs
3
4#[cfg(any(feature = "native", feature = "db"))]
5pub mod vfs;
6pub mod uri;
7#[cfg(any(feature = "native", feature = "db"))]
8pub mod storage;
9pub mod merkle;
10#[cfg(any(feature = "native", feature = "db"))]
11pub mod petri_process;
12#[cfg(any(feature = "native", feature = "db"))]
13pub mod host_mount;
14#[cfg(feature = "native")]
15pub mod chunk_pruning;
16pub mod chunk_manifest;
17#[cfg(any(feature = "native", feature = "db"))]
18pub mod storage_petri;
19pub mod sync;
20pub mod sheaf_cohomology;
21#[cfg(any(feature = "native", feature = "db"))]
22pub mod collection;
23#[cfg(any(feature = "native", feature = "db"))]
24pub mod cas_retention;
25pub mod workflow_lineage;
26#[cfg(any(feature = "native", feature = "db"))]
27pub mod portable_sqlite;
28
29#[cfg(any(feature = "native", feature = "db"))]
30pub use collection::MCardCollection;
31#[cfg(any(feature = "native", feature = "db"))]
32pub use cas_retention::{
33    eligible, get_all_working_records, get_declared_roots, parse_anchor, parse_genesis,
34    AnchorPayload, EligibilityResult, GenesisPayload, RetentionPolicy,
35};
36pub use workflow_lineage::{LineageDAG, LineageEdge, LineageEngine, LineageNode};
37#[cfg(any(feature = "native", feature = "db"))]
38pub use portable_sqlite::{
39    compile_portable_sqlite, parse_portable_sqlite, ParsedCard, ParsedHandle, ParsedHistory,
40    ParsedMeta, ParsedPortableSqlite, PortableSqliteCard,
41};
42
43#[cfg(any(feature = "native", feature = "db"))]
44pub use vfs::{DirectoryManifest, DirectoryManifestEntry, MCardFileSystem, MCardStat};
45#[cfg(any(feature = "native", feature = "db"))]
46pub use storage::*;
47#[cfg(any(feature = "native", feature = "db"))]
48pub use storage_petri::*;
49pub use merkle::*;
50#[cfg(any(feature = "native", feature = "db"))]
51pub use petri_process::{
52    MCardNamespaceProtocolService, PetriProcessPCard, ProcessExecutionResult,
53    NAMESPACE_PROTOCOL_OPS,
54};
55#[cfg(any(feature = "native", feature = "db"))]
56pub use host_mount::{Layer1NetCollectionServer, MCardHostMountAdapter, NamespaceUnionMount};
57pub use chunk_manifest::{ChunkDescriptor, ChunkManifest};
58#[cfg(feature = "native")]
59pub use chunk_pruning::{
60    cdc_split_boundaries, compute_reachability, AnchoredPruningProcessPCard,
61    ChunkerProcessPCard, PruningAnchorResult, PruningReachabilityReport,
62    StreamRangeProcessPCard, StreamRangeResult, CHUNKER_ID, CHUNKER_VERSION,
63};
64
65#[cfg(feature = "crdt")]
66pub use crate::crdt;
67
68#[cfg(all(test, feature = "native"))]
69pub mod petri_process_tests;
70
71#[cfg(any(feature = "native", feature = "db"))]
72pub mod collision_migration;
73#[cfg(feature = "native")]
74pub mod sheaf_persistence;
75
76