iron_qnn_sys/lib.rs
1//! QNN SDK FFI. Dynamic-loading mirror of the CUDA/ROCm sys crates.
2//!
3//! QNN ships one `.so` / `.dll` per backend (HTP, GPU, CPU, DSP). Each
4//! exports a single entry point — `QnnInterface_getProviders` — that returns
5//! a list of versioned function tables. We load the target library, call
6//! that entry, pick the first v2.x provider, and expose its function table
7//! through safe wrappers.
8//!
9//! Items here mirror the QNN SDK headers one-to-one, so they are not
10//! documented item by item — Qualcomm's reference for the same symbol is the
11//! authority. The safe crate (`ironaccelerator-qnn`) is fully documented and
12//! enforces `missing_docs`.
13
14#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
15#![allow(clippy::missing_safety_doc, clippy::type_complexity)]
16
17pub mod loader;
18pub mod qnn;
19
20pub use loader::{LoadError, LoaderResult};