From a50e99d2486bd68276ec01c77dd9e397259988c4 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Thu, 30 Apr 2026 10:00:13 +0200 Subject: [PATCH] fix(llm): allow dead_code on host build (non-wasm32, non-test) Signed-off-by: flemming-it --- src/llm.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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)]