fix(lib): allow unsafe_op_in_unsafe_fn on wasm32 for wit_bindgen 0.36
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1m9s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 1m9s
Same suppression as in fai/platform's modules/echo: wit_bindgen 0.36's export! macro expands into unsafe fns whose bodies call further unsafe fns without explicit unsafe blocks, and Rust 2024 makes that an error under -D warnings. Drop once wit_bindgen ships a fix. Gated on target_arch wasm32 so the host build (tests, plan validation) stays strict. Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
2c889888d8
commit
f8a3a7ebf3
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue