field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

commit 5e167386eccfc51d37d86204e326aeeb10486a55
parent d33a4a5793384f6012cff8e64f0df2be48e4308c
Author: triesap <tyson@radroots.org>
Date:   Thu,  6 Aug 2026 19:57:19 +0000

mobile: canonicalize wasm export identity

- rename the wasm build-info export to the canonical mobile name
- remove the legacy field marker from coverage probes
- update focused tests to assert only canonical identifiers
- preserve runtime payload behavior across the breaking rename

Diffstat:
Mcore/crates/tera_wasm/src/lib.rs | 18+++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/core/crates/tera_wasm/src/lib.rs b/core/crates/tera_wasm/src/lib.rs @@ -3,7 +3,7 @@ use wasm_bindgen::prelude::wasm_bindgen; #[wasm_bindgen] -pub fn field_wasm_build_info_json() -> String { +pub fn radroots_mobile_build_info_json() -> String { let runtime = radroots_mobile_core::RadrootsRuntime::new() .expect("runtime init must succeed with radroots_mobile_core no-default-features"); runtime.info_json() @@ -14,22 +14,26 @@ pub fn field_wasm_build_info_json() -> String { reason = "coverage probe intentionally exercises both paths with a stable value" )] pub fn coverage_branch_probe(input: bool) -> &'static str { - if input { "field_wasm" } else { "field_wasm" } + if input { + "radroots_mobile_wasm" + } else { + "radroots_mobile_wasm" + } } #[cfg(test)] mod tests { - use super::{coverage_branch_probe, field_wasm_build_info_json}; + use super::{coverage_branch_probe, radroots_mobile_build_info_json}; #[test] - fn field_wasm_build_info_json_contains_runtime_keys() { - let json = field_wasm_build_info_json(); + fn radroots_mobile_build_info_json_contains_runtime_keys() { + let json = radroots_mobile_build_info_json(); assert!(json.contains("\"app\"")); } #[test] fn coverage_branch_probe_hits_both_paths() { - assert_eq!(coverage_branch_probe(true), "field_wasm"); - assert_eq!(coverage_branch_probe(false), "field_wasm"); + assert_eq!(coverage_branch_probe(true), "radroots_mobile_wasm"); + assert_eq!(coverage_branch_probe(false), "radroots_mobile_wasm"); } }