fix(llm): allow dead_code on host build (non-wasm32, non-test)
All checks were successful
CI / Linux x86_64 (Forgejo) (push) Successful in 1m42s

Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
flemming-it 2026-04-30 10:00:13 +02:00
parent b407450e6b
commit a50e99d248

View file

@ -7,6 +7,12 @@
//! exercise the prompt-building and response-parsing logic on the //! exercise the prompt-building and response-parsing logic on the
//! host without making real network calls. //! host without making real network calls.
// On the host build, the LLM functions only have callers in
// #[cfg(test)] code; the production caller (WakiClient) is
// wasm32-only. Suppress dead-code warnings for the non-wasm32
// non-test build that cargo runs as part of --all-targets.
#![cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]
use serde::Serialize; use serde::Serialize;
#[derive(Debug, thiserror::Error)] #[derive(Debug, thiserror::Error)]