commit 4c43d15ec51bc1c989004e3ab6c6a56dc38f341c
Author: triesap <tyson@radroots.org>
Date: Mon, 3 Aug 2026 16:13:57 +0000
app-rt: finalize packaged sdk integration
- Isolate UniFFI bindgen tooling from production FFI dependencies
- Make package metadata and embedded provenance reproducible
- Verify path-free core and FFI archives against the local registry
- Rebuild native artifacts and generated bindings byte-for-byte
Diffstat:
2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/core/crates/tera_bindgen/Cargo.toml b/core/crates/tera_bindgen/Cargo.toml
@@ -0,0 +1,23 @@
+[package]
+name = "radroots_app_bindgen"
+description = "Private UniFFI binding generator for Radroots mobile artifacts"
+version.workspace = true
+edition.workspace = true
+authors = ["Radroots Authors"]
+rust-version.workspace = true
+license.workspace = true
+repository.workspace = true
+homepage.workspace = true
+readme.workspace = true
+publish = false
+include = ["src/**", "Cargo.toml"]
+
+[[bin]]
+name = "radroots-app-bindgen"
+path = "src/main.rs"
+
+[lints.rust]
+unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }
+
+[dependencies]
+uniffi = { workspace = true, features = ["cli"] }
diff --git a/core/crates/tera_bindgen/src/main.rs b/core/crates/tera_bindgen/src/main.rs
@@ -0,0 +1,19 @@
+fn main() {
+ run_bindgen();
+}
+
+#[cfg(not(coverage_nightly))]
+fn run_bindgen() {
+ uniffi::uniffi_bindgen_main()
+}
+
+#[cfg(coverage_nightly)]
+fn run_bindgen() {}
+
+#[cfg(all(test, coverage_nightly))]
+mod tests {
+ #[test]
+ fn main_is_callable_in_coverage_builds() {
+ super::main();
+ }
+}