Expand description
Intermediate Representation (IR), deterministic XXH64 schema hashing, interface ID assignment, and strict semantic validation for NV’s Nitro-inspired Rust-first Hybrid FFI code generator.
Structs§
- Hybrid
Alias Spec - Opaque handle or typedef alias declared with
#[nv_hybrid_alias] pub type ... = ...;. - Hybrid
Const Spec - Named constant declared with
#[nv_hybrid_const] pub const .... - Hybrid
Enum Spec - C-ABI enum declared with
#[nv_hybrid_enum]. - Hybrid
Enum Variant - One variant of a
#[repr(u8|u16|u32|i32)] #[nv_hybrid_enum]. - Hybrid
Event Spec - Typed event declared with
#[event]or#[event(retained)]on aHybridModuleSpecorHybridViewSpec. - Hybrid
Field Spec - Named field of a
#[nv_hybrid_struct]or#[nv_hybrid_union]. - Hybrid
File Spec - Complete parsed or programmatically constructed Hybrid FFI specification file.
- Hybrid
Method Spec - Method declared on a
HybridModuleSpec, imperative#[method]on aHybridViewSpec, or C API function. - Hybrid
Module Spec - Nitro-style native module declared with
#[nv_hybrid_module(name = "...")]. - Hybrid
Param Spec - Named parameter of a method or view event.
- Hybrid
Prop Spec - Typed prop declared with
#[prop]on aHybridViewSpec. - Hybrid
Struct Spec - Structured record declared with
#[nv_hybrid_struct]or#[nv_hybrid_union]. - Hybrid
View Spec - Nitro-style native view component declared with
#[nv_hybrid_view(name = "...")]. - Interface
Id - Modular C ABI interface identifier (
>= 0x1000_0000for generated hybrid modules, or explicit low IDs).
Enums§
- Default
Literal - A prop default: a
Scalarliteral shared by the Dart, Rust, and Swift targets (true, bare integers,.0for an integer default of a float,format_float_literal), or a kind each target spells itself. - Hybrid
Binding - FFI binding mechanism for a hybrid module or view (
binding = "direct"default, or"vtable"). - Hybrid
Default Value - Typed literal default value for a
#[prop(default = ...)]on aHybridView. - Hybrid
Impl - Which side implements a
binding = "direct"module (impl = "rust"default, or"host"). - Hybrid
Target - Target languages emitted by the Hybrid FFI generator.
- Hybrid
Type - Rich typed system shared across Hybrid modules, views, structs, enums, and events.
- PodOption
Scope - Which signatures carry C options: Dart, Rust, Swift, TS, and Kotlin bind only modules and views; the C header also declares the static C functions.
Constants§
- NV_
HYBRID_ ABI_ VERSION - Current Hybrid FFI vtable ABI version stamped into every generated vtable (compile-time locked
against
nativeview_abi::hybrid::NV_HYBRID_ABI_VERSIONinnativeview-codegen). - NV_
HYBRID_ INTERFACE_ ID_ BASE - Base interface ID for generated hybrid vtables (
>= 0x1000_0000), keeping the low range (1..=4) permanently reserved for core NV interfaces (NV_IFACE_SURFACE..NV_IFACE_DEV). - NV_
HYBRID_ INTERFACE_ ID_ MASK - Bitmask for the 28-bit deterministic hash payload inside a hybrid
interface_id. - RESERVED_
BATCH_ PROTOCOL_ STATUSES - Reserved
NvModStatusprotocol error codes that custom#[batchable]error enums cannot reuse (compile-time locked againstnativeview_abi::NvModStatus::ALL+is_batch_protocol_statusinnativeview-codegen).
Functions§
- compute_
hybrid_ interface_ id - Computes a deterministic hybrid
interface_id >= 0x1000_0000for a module or view. - reserved_
batch_ protocol_ status_ name - Returns the
NvModStatusvariant name ifcodeis a reserved batch protocol status.