This commit is contained in:
2026-07-23 16:37:12 +02:00
parent 99c345f2f2
commit 0da75c1311
2159 changed files with 230833 additions and 0 deletions

15
kb-store/Cargo.toml Normal file
View File

@@ -0,0 +1,15 @@
# file: kb-store/Cargo.toml
# version: 1
[package]
name = "kb-store"
version.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
[dependencies]
kb-core = { path = "../kb-core" }
[lints]
workspace = true

11
kb-store/src/core.rs Normal file
View File

@@ -0,0 +1,11 @@
// file: kb-store/src/core.rs
// version: 1
//! Store-neutral contracts.
/// Store health summary.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct StoreHealth {
/// Whether the backend is available.
pub available: bool,
}

14
kb-store/src/lib.rs Normal file
View File

@@ -0,0 +1,14 @@
// file: kb-store/src/lib.rs
// version: 1
#![forbid(unsafe_code)]
#![deny(unreachable_pub)]
#![warn(missing_docs)]
//! Consolidated storage crate.
pub mod core;
pub mod postgres;
/// Store health summary.
pub use crate::core::StoreHealth;

9
kb-store/src/postgres.rs Normal file
View File

@@ -0,0 +1,9 @@
// file: kb-store/src/postgres.rs
// version: 1
//! PostgreSQL backend boundary.
/// PostgreSQL backend migration status.
pub fn migration_status() -> &'static str {
return "pending-source-port";
}