Skip to main content

fraiseql_functions/runtime/wasm/
bindings.rs

1//! WASM component bindings for `fraiseql:host`.
2//!
3//! This module invokes `wasmtime::component::bindgen!` to generate Rust traits
4//! from the WIT interface definition (`wit/fraiseql-host.wit`). The generated
5//! traits are implemented by `StoreData` to provide host services to WASM guests.
6
7#[allow(missing_docs)] // Reason: wasmtime bindgen-generated types do not have docs
8#[allow(clippy::all, clippy::pedantic)] // Reason: generated code
9#[allow(unsafe_code)] // Reason: wasmtime bindgen generates unsafe component model glue
10mod generated {
11    wasmtime::component::bindgen!({
12        path: "wit/fraiseql-host.wit",
13        imports: {
14            default: async,
15        },
16    });
17}
18
19pub use generated::*;