Skip to main content

infinite_db/
lib.rs

1//! InfiniteDB crate root.
2//!
3//! This crate exposes core spatial data types and, via feature flags,
4//! optional embedded storage, server, and sync layers.
5
6/// Core spatial and branching types.
7pub mod infinitedb_core;
8
9/// Hilbert and dimension encoding utilities.
10pub mod infinitedb_index;
11
12/// Embedded storage engine components.
13#[cfg(feature = "embedded")]
14pub mod infinitedb_storage;
15
16/// Server-facing API and session management.
17#[cfg(feature = "server")]
18pub mod infinitedb_server;
19
20/// Synchronization and replication primitives.
21#[cfg(feature = "sync")]
22pub mod infinitedb_sync;
23
24// ---------------------------------------------------------------------------
25// Top-level facade
26// ---------------------------------------------------------------------------
27
28#[cfg(feature = "embedded")]
29/// Top-level embedded database handle and diagnostics.
30pub use db::{InfiniteDb, MemoryStats};
31
32#[cfg(feature = "embedded")]
33mod db;
34