UniFFI — Rust ↔ Kotlin/Swift Bindings References : proc-macro.md for inline macro mode (UDL-free). kmp-bindings.md for the Kotlin Multiplatform fork used by BDK/Breez/CDK. Deep Knowledge : Use with technology: . What UniFFI Is UniFFI generates safe, idiomatic language bindings (Kotlin, Swift, Python, Ruby) from a Rust crate. The generated code: - Marshals types correctly (handles , , , , custom enums/structs, traits) - Manages memory across the FFI boundary (RAII, reference counting) - Maps Rust errors to native exceptions - Supports async functions, callback interfaces, and trait objects Two…