smix-ffi 1.0.3

smix-ffi — UniFFI v0.29+ scaffolding crate. Wraps smix-selector-resolver + smix-screen stone API for cross-language consumption (Swift Package / Kotlin .aar / Expo RN). C-ABI via uniffi-bindgen. iOS sim + macOS + Android targets via cargo build per-triple + xcodebuild -create-xcframework (iOS) / cargo-ndk (Android).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! smix-bindgen-swift — thin wrapper around `uniffi::uniffi_bindgen_swift()`
//! (UniFFI 0.29.5+ built-in CLI).
//!
//! Avoids needing a separate `cargo install uniffi-bindgen-swift` since
//! `uniffi` v0.29+ ships the Swift generator inside the main crate, gated
//! behind the `cli` feature (which our `bindgen-cli` feature enables).
//!
//! Usage:
//!   cargo run -p smix-ffi --features bindgen-cli --bin smix-bindgen-swift -- \
//!     target/aarch64-apple-darwin/release/libsmix_ffi.dylib \
//!     swift-bridge/Sources/SmixCoreFFI/Generated \
//!     --xcframework --module-name SmixCoreFFI \
//!     --modulemap-filename module.modulemap

fn main() {
    uniffi::uniffi_bindgen_swift();
}