Expand description
Target-language code emitters organized by output language, plus unified multi-target
dispatchers for Hybrid FFI and RN import/export. Host ABI data lives in crate::abi.
Re-exports§
pub use c_cpp::generate_hybrid_cpp;pub use dart::generate_export_flutter;pub use dart::generate_hybrid_dart;pub use kotlin_java::generate_export_compose;pub use kotlin_java::generate_hybrid_kotlin;pub use nitro_ui::generate_export_nitro_ui;pub use rust::generate_hybrid_rust;pub use swift::generate_export_swiftui;pub use swift::generate_hybrid_swift;pub use typescript::generate_export_web_component;pub use typescript::generate_hybrid_ts;
Modules§
- batch_
model - Shared
#[batchable]command-buffer lowering model (DirectBatchSpec) consumed across all target language emitters so every language agrees on opcodes, unified error channels, reply flags, and wire encodings. - c_cpp
- C11 / C++20 / Objective-C++ target emitters: Hybrid FFI, the React Native TurboModule host
interface (
import_rn), and the React Native iOS / Windows component exports. - dart
- Dart / Flutter target emitters (Flutter
StatefulWidgetexport and Hybrid FFIdart:ffibindings). - direct_
model - Shared Direct-First Hybrid FFI lowering model used across all 7 target emitters (Rust, C11,
C++20, Swift 6, Kotlin/JNI, TypeScript/WASM, and Dart) so every language agrees on C ABI
signatures, enum widths,
NvBytesSink/NvAsyncBytesDonecalling conventions, and zero-wastewirepayload shapes. - export_
pkg - Pure, deterministic package manifest, entrypoint, Apple export anchor, and dynamic iOS
.frameworkInfo.plistemitters forweb-pkg,rn-pkg, andnitro-ui-pkg. - kotlin_
java - Kotlin & Java target emitters (Jetpack Compose export, Android RN Fabric ViewManager export, and Kotlin/JNI Hybrid FFI).
- nitro_
ui export_nitro_ui:#[nv_hybrid_view]->margelo/nitro-ui0.3.0 (nitro-corev1"environment": "bare") native view module across TS, Swift (HybridNative<Name>.swift), Kotlin (HybridNative<Name>.kt), andnitro.json.- rust
- Rust target emitters (
import_rnprops/event bindings and Hybrid FFI vtables/types). - swift
- Swift target emitters (SwiftUI
#[nv_hybrid_view]export and Hybrid FFI C-interop). - typescript
- TypeScript / Web target emitters (Web Component export, React Native Fabric TS spec export, and Hybrid FFI WASM client).
Structs§
- Hybrid
Generate Output - Generated files emitted for one
HybridTarget.
Functions§
- generate_
export_ rn - Generates a complete drop-in binary React Native Fabric NativeComponent package for an NV view.
- generate_
export_ rn_ with_ ios_ module - Like
generate_export_rn, parameterizing the iOS<Mod>Core.frameworkname loaded viadlopen(RTLD_LOCAL)in<Name>ComponentView.generated.mm. - generate_
hybrid_ all - Generates binary Hybrid FFI bindings for all requested
HybridTargets (orHybridTarget::ALL). - generate_
hybrid_ target - Generates binary Hybrid FFI bindings for a single requested
HybridTarget. - generate_
import_ rn - Generates zero-JS, binary FFI Rust
nativeview-abiprops/event bindings and a thin C++20 Fabric adapter from a parsed RN spec.