Skip to main content

wamrx_sys/
lib.rs

1//! Raw FFI bindings to the [WebAssembly Micro Runtime (WAMR)] fast interpreter.
2//!
3//! This crate is the low-level `-sys` layer: it builds the vendored WAMR C
4//! sources (fast-interpreter configuration only) and exposes the auto-generated
5//! `bindgen` bindings for the embedding API declared in `wasm_export.h`.
6//!
7//! Prefer the safe [`wamrx`] crate for application code; reach for these raw
8//! bindings only when you need an API that the high-level wrapper does not yet
9//! cover.
10//!
11//! [WebAssembly Micro Runtime (WAMR)]: https://github.com/bytecodealliance/wasm-micro-runtime
12//! [`wamrx`]: https://docs.rs/wamrx
13#![allow(non_upper_case_globals)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(clippy::all)]
17
18include!(concat!(env!("OUT_DIR"), "/bindings.rs"));