Skip to main content

kmp_embedded/
lib.rs

1//! Embedded edition composition root (ADR-013): wires the application
2//! services over the local store with synchronous in-process projection, and
3//! resolves the data directory per the ADR-012 contract and the storage
4//! engine per ADR-018. No transport, no infrastructure clients.
5
6mod commit_bundle;
7mod data_dir;
8mod engine;
9mod kernel;
10mod memory_api;
11mod migration;
12
13pub use commit_bundle::{
14    CommitNativeBundle, PENDING_EXPORT_DIR, PendingBundleExport, clear_pending_bundle_exports,
15    pending_bundle_exports, write_bundle_atomically, write_bundle_if_absent,
16};
17pub use data_dir::{
18    DATA_DIR_ENV, OrphanedProjectBundle, PROJECT_BUNDLE_PATH, ResolvedDataDir,
19    ensure_data_dir_skeleton, locate_data_dir_from_env, project_bundle_path, resolve_data_dir,
20    resolve_data_dir_from_env, user_data_home,
21};
22pub use engine::{
23    ENGINE_ENV, default_engine_for_data_dir, parse_engine, resolve_engine_for_data_dir_from_env,
24    resolve_engine_from_env,
25};
26pub use kernel::{EmbeddedKernel, EmbeddedMemoryService};
27pub use kmp_adapter_embedded::{
28    BUNDLE_FORMAT_VERSION, BundleEventRange, BundleHeader, EmbeddedKernelStore,
29    SUPPORTED_FORMAT_VERSION, SqliteQualityTelemetryReader, StorageEngine, StoreMigrationReceipt,
30    format_version_path, merge_bundles, quality_telemetry_path, read_stamped_version,
31    store_file_path_for, validate_store_layout, verify_bundle,
32};
33pub use migration::{migrate_data_dir, migrate_data_dir_to, open_or_migrate_data_dir};