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
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:
parent
b407450e6b
commit
a50e99d248
1 changed files with 6 additions and 0 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue