diff --git a/src/llm.rs b/src/llm.rs index c5bd1ee..7876fef 100644 --- a/src/llm.rs +++ b/src/llm.rs @@ -7,6 +7,12 @@ //! exercise the prompt-building and response-parsing logic on the //! 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; #[derive(Debug, thiserror::Error)]