From 417cba8b4d7d6160bbd05c8d5fae9e7dcca10cbf Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Tue, 6 Oct 2026 21:41:13 -0400 Subject: [PATCH] Silence the hardware module where no runtime is loaded from disk hardware::detect is read only by api::install_best, which exists with the native feature; a build of a crate that takes the engine without it (dr-denoise's own tests) warned that all of it was unused. --- core/dr-inference-engine/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dr-inference-engine/src/lib.rs b/core/dr-inference-engine/src/lib.rs index 7a57c88..f91ff23 100644 --- a/core/dr-inference-engine/src/lib.rs +++ b/core/dr-inference-engine/src/lib.rs @@ -21,6 +21,8 @@ use serde::{Deserialize, Serialize}; mod api; mod engines; +// Read only when a runtime is loaded from disk (`api::install_best`). +#[cfg_attr(not(feature = "native"), allow(dead_code))] mod hardware; mod probe; mod session;