commit 41cf1a67e72a51daf7af92ffd30218c96bf7a8e1
parent 9a08fbe627f8a1495fdd61fd9004badbce1ee81c
Author: triesap <tyson@radroots.org>
Date: Sun, 2 Aug 2026 19:47:04 +0000
build(desktop): stage the native runtime
- place the current-host library under JNA platform resources
- configure development and test native lookup paths
- verify generated Kotlin crosses the loaded native ABI
- include the library in the current-host application bundle
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/crates/studio_ffi/src/lib.rs b/crates/studio_ffi/src/lib.rs
@@ -12,3 +12,17 @@ pub use dto::{
pub use observer::{ObserverSubscription, StudioObserver};
uniffi::setup_scaffolding!();
+
+#[uniffi::export]
+#[must_use]
+pub fn native_runtime_version() -> String {
+ env!("CARGO_PKG_VERSION").to_owned()
+}
+
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn native_runtime_reports_the_crate_version() {
+ assert_eq!(super::native_runtime_version(), "0.1.0-alpha.0");
+ }
+}