commit 5aa29339dbc51376015090a6c3ad9acf5ce0d3ad
parent 5e167386eccfc51d37d86204e326aeeb10486a55
Author: triesap <tyson@radroots.org>
Date: Fri, 7 Aug 2026 10:24:29 +0000
Require durable SQLite for mobile runtimes
- validate Apple host store paths and authenticated identities
- expose typed protected-data and storage failures across UniFFI
- classify corruption, schema, and writer-lock failures at SDK boundary
- prove create, reopen, fencing, recovery, and test-only memory behavior
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/core/crates/tera_wasm/Cargo.toml b/core/crates/tera_wasm/Cargo.toml
@@ -17,4 +17,5 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
radroots_mobile_core = { workspace = true, default-features = false }
+serde_json = { workspace = true }
wasm-bindgen = { workspace = true }
diff --git a/core/crates/tera_wasm/src/lib.rs b/core/crates/tera_wasm/src/lib.rs
@@ -4,9 +4,8 @@ use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
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()
+ serde_json::to_string(&radroots_mobile_core::runtime::info::app_build_info())
+ .expect("static build information must serialize")
}
#[allow(
@@ -28,7 +27,8 @@ mod tests {
#[test]
fn radroots_mobile_build_info_json_contains_runtime_keys() {
let json = radroots_mobile_build_info_json();
- assert!(json.contains("\"app\""));
+ assert!(json.contains("\"crate_name\""));
+ assert!(json.contains("radroots_mobile_core"));
}
#[test]