lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit 66c859b8ae773bdd3eb80b2894c4fcc97146f17a
parent 9600dfa4b30820660154d1e28d95a7e83344d103
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:
Mcrates/sdk/tests/source_boundary.rs | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

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());