v0.3.2-pre.002-fix.001

This commit is contained in:
2026-08-29 17:42:14 +02:00
parent 153014be9d
commit ced653bfc0
10 changed files with 151 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-store-postgres-lib/src/constants.rs
// version: 1
// version: 2
//! PostgreSQL Store backend-owned constants.

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-store-postgres-lib/src/lib.rs
// version: 1
// version: 2
#![warn(missing_docs)]
#![deny(unreachable_pub)]
@@ -19,3 +19,7 @@ mod constants;
/// Crate-owned tracing target reserved for later PostgreSQL backend behavior.
pub(crate) use self::constants::TRACING_TARGET;
// Keep the mandatory crate-owned tracing target part of the compiled scaffold
// without inventing runtime logging before the first behavioral tranche.
const _: &str = TRACING_TARGET;

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-store-postgres-lib/tests/dependency_boundary.rs
// version: 1
// version: 2
#![warn(missing_docs)]
#![deny(unreachable_pub)]
@@ -26,6 +26,7 @@ fn pre_002_backend_does_not_advance_connection_pool_tls_or_migrations() {
let crate_root = include_str!("../src/lib.rs");
assert!(crate_root.contains("mod constants;"));
assert!(crate_root.contains("pub(crate) use self::constants::TRACING_TARGET;"));
assert!(crate_root.contains("const _: &str = TRACING_TARGET;"));
for forbidden in ["pub mod ", "pub struct", "pub enum", "pub trait", "tokio_postgres", "deadpool_postgres", "mod migration", "SELECT ", "CREATE TABLE"] {
assert!(!crate_root.contains(forbidden), "premature PostgreSQL backend surface detected: {forbidden}");
}