crabtalk_storage/lib.rs
1//! Persistence backends for Crabtalk.
2//!
3//! [`Storage`](wcore::storage::Storage) is declared in core; this crate
4//! implements it. A backend is chosen at compile time through
5//! `runtime::Config`'s `Storage` associated type, not by a feature — the
6//! `sqlite` feature exists only so a consumer that wants the filesystem
7//! doesn't build a SQL driver it will never call.
8//!
9//! [`FsStorage`] is the daemon's backend: TOML configs, markdown prompts,
10//! and JSON session files under `~/.crabtalk/`.
11
12pub use fs::{DEFAULT_CONFIG, DEFAULT_SETTINGS, FsStorage, scaffold_config_dir};
13#[cfg(feature = "sqlite")]
14pub use sqlite::SqliteStorage;
15
16mod fs;
17mod skills;
18#[cfg(feature = "sqlite")]
19mod sqlite;