Skip to main content

Module targets

Module targets 

Source
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 StatefulWidget export and Hybrid FFI dart:ffi bindings).
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 / NvAsyncBytesDone calling conventions, and zero-waste wire payload shapes.
export_pkg
Pure, deterministic package manifest, entrypoint, Apple export anchor, and dynamic iOS .framework Info.plist emitters for web-pkg, rn-pkg, and nitro-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-ui 0.3.0 (nitro-core v1 "environment": "bare") native view module across TS, Swift (HybridNative<Name>.swift), Kotlin (HybridNative<Name>.kt), and nitro.json.
rust
Rust target emitters (import_rn props/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§

HybridGenerateOutput
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.framework name loaded via dlopen(RTLD_LOCAL) in <Name>ComponentView.generated.mm.
generate_hybrid_all
Generates binary Hybrid FFI bindings for all requested HybridTargets (or HybridTarget::ALL).
generate_hybrid_target
Generates binary Hybrid FFI bindings for a single requested HybridTarget.
generate_import_rn
Generates zero-JS, binary FFI Rust nativeview-abi props/event bindings and a thin C++20 Fabric adapter from a parsed RN spec.