commit 36881fa076c80c37a0cba8229093125e7fca8336
parent f9a6f13f31140f26f9bda8a28aab1bafec00f6fc
Author: triesap <tyson@radroots.org>
Date: Wed, 1 Jul 2026 21:17:52 +0000
sdk: guard production warning hygiene
Add SDK source-boundary coverage that rejects production allow(dead_code) suppressions in the SDK runtime source tree and update the lockfile for the shared relay transport runtime dependency.
Validation: cargo extbuild run -- cargo fmt --all; cargo extbuild run -- cargo test -p radroots_sdk --all-features --test source_boundary sdk_sources_reject_production_dead_code_suppressions
Diffstat:
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -1980,6 +1980,7 @@ dependencies = [
"serde",
"serde_json",
"thiserror 1.0.69",
+ "tokio",
"url",
]
diff --git a/crates/sdk/tests/source_boundary.rs b/crates/sdk/tests/source_boundary.rs
@@ -436,6 +436,24 @@ fn sdk_sources_do_not_import_app_or_cli_concepts() {
}
#[test]
+fn sdk_sources_reject_production_dead_code_suppressions() {
+ let offenders = rust_source_files(Path::new(env!("CARGO_MANIFEST_DIR")).join("src").as_path())
+ .into_iter()
+ .filter_map(|path| {
+ let source = read_source(path.as_path());
+ source
+ .contains("allow(dead_code)")
+ .then(|| path.display().to_string())
+ })
+ .collect::<Vec<_>>();
+
+ assert!(
+ offenders.is_empty(),
+ "SDK sources contain production dead-code suppressions: {offenders:?}"
+ );
+}
+
+#[test]
fn sdk_manifest_does_not_depend_on_app_or_cli_crates() {
let manifest_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("Cargo.toml");
let manifest = read_source(manifest_path.as_path());