diff --git a/src/lib.rs b/src/lib.rs index 5abecd3..45f0d2e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,6 +5,14 @@ //! to the deterministic stub from v0.1.0 — useful for tests and //! for environments where no LLM is reachable. +// wit_bindgen 0.36's `export!` macro expands into unsafe fns +// whose bodies call further unsafe fns without explicit unsafe +// blocks — Rust 2024's `unsafe_op_in_unsafe_fn` lint flags +// those, and CI runs with -D warnings. Suppress on wasm32 only +// so the host build stays strict. Drop this once wit_bindgen +// ships a fix. +#![cfg_attr(target_arch = "wasm32", allow(unsafe_op_in_unsafe_fn))] + mod llm; mod plan;