v0.2.11-pre.010-fix.001

This commit is contained in:
2026-08-26 12:34:48 +02:00
parent 2db3c4be78
commit 98708df6e0
5 changed files with 148 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-offchain-transport-lib/tests/security_hardening.rs
// version: 1
// version: 2
#![warn(missing_docs)]
#![deny(unreachable_pub)]
@@ -66,7 +66,6 @@ fn pre_010_market_price_sources_do_not_read_environment_or_use_float_price_truth
};
assert!(!source.contains("std::env"), "market-price source must not bypass Config environment ownership: {name}");
assert!(!source.contains("as_f64("), "market-price source must not use serde_json f64 as canonical price truth: {name}");
assert!(!source.contains("tracing::"), "market-price source must use ksp-logging-lib rather than tracing directly: {name}");
}
return std::result::Result::Ok(());
}