node-app-api 5.19.1

Shared types and C ABI definitions for the Node-App host API v1
Documentation
//! Node-App API - Shared types and C ABI definitions
//!
//! This crate provides shared types used by:
//! - The host backend (NodeAppManager, NativeLoader, BunLoader)
//! - Native app SDKs (Rust, Go, C, Zig via C ABI)
//! - Scripted app SDKs (TypeScript/JavaScript via IPC)

pub mod context;
pub mod ffi;
pub mod types;

// Re-exports for convenience
pub use context::NodeAppContext;
pub use ffi::{FfiResult, NodeAppEntryFn, NodeAppMetadata, NodeAppVTable, NODE_APP_ENTRY_SYMBOL};
pub use types::{
    AppEvent, AppRequest, AppResponse, Capabilities, CapabilityExample, CapabilityRequest,
    CapabilityResponse, NodeAppInfo, ProvidedCapability,
};

/// API version for compatibility checking between host and native apps.
/// Host and app must have matching API_VERSION to load successfully.
pub const API_VERSION: u32 = 1;