v0.3.15-pre.006
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/dependency_boundary.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
//! Dependency-boundary canaries for the Raw Transaction Ingest Desk scaffold.
|
||||
//! Dependency-boundary canaries for Raw Transaction Ingest Desk Config-only route inventory.
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(unreachable_pub)]
|
||||
@@ -21,13 +21,12 @@ fn read_text(path: &std::path::Path) -> String {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_005_manifest_is_scaffold_only_and_backend_neutral() {
|
||||
fn pre_006_manifest_opens_only_transport_for_typed_config_composability() {
|
||||
let manifest = read_text(app_root().join("Cargo.toml").as_path());
|
||||
for required in ["ksp-config-lib", "ksp-core-lib", "ksp-logging-lib", "tauri-plugin-tracing"] {
|
||||
assert!(manifest.contains(required), "missing scaffold dependency {required}");
|
||||
for required in ["ksp-config-lib", "ksp-core-lib", "ksp-logging-lib", "ksp-onchain-transport-lib", "tauri-plugin-tracing"] {
|
||||
assert!(manifest.contains(required), "missing pre.006 dependency {required}");
|
||||
}
|
||||
for forbidden in [
|
||||
"ksp-onchain-transport-lib",
|
||||
"ksp-store-lib",
|
||||
"ksp-store-api",
|
||||
"ksp-store-postgres-lib",
|
||||
@@ -39,12 +38,12 @@ fn pre_005_manifest_is_scaffold_only_and_backend_neutral() {
|
||||
"tonic",
|
||||
"yellowstone-grpc",
|
||||
] {
|
||||
assert!(!manifest.contains(forbidden), "scaffold opens forbidden dependency {forbidden}");
|
||||
assert!(!manifest.contains(forbidden), "pre.006 opens forbidden dependency {forbidden}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_005_production_sources_do_not_construct_transport_store_or_worker_runtime() {
|
||||
fn pre_006_production_sources_use_transport_settings_only_without_runtime_io_or_store_open() {
|
||||
let root = app_root().join("src");
|
||||
let entries = std::fs::read_dir(root.as_path());
|
||||
assert!(entries.is_ok());
|
||||
@@ -57,11 +56,13 @@ fn pre_005_production_sources_do_not_construct_transport_store_or_worker_runtime
|
||||
let source = read_text(path.as_path());
|
||||
for forbidden in [
|
||||
"HttpTransportPool",
|
||||
"WsTransportSettings",
|
||||
"WsProtocolSession",
|
||||
"YellowstoneGrpcChannel",
|
||||
"ksp_store_lib::Store",
|
||||
"Store::open",
|
||||
"RawTransactionIngestWorker",
|
||||
"RawTransactionIngestRuntimeResources",
|
||||
"start_with_runtime_resources",
|
||||
"request_stop",
|
||||
] {
|
||||
assert!(!source.contains(forbidden), "{} contains premature runtime marker {forbidden}", path.display());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user