From 41f6577eaafe68dc21754e2a8368d5134c47e0fd Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 1 Jul 2026 10:54:41 +0800 Subject: [PATCH] chore: fix clippy --- extensions/components/build.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/extensions/components/build.rs b/extensions/components/build.rs index 62b6094..5696f2b 100644 --- a/extensions/components/build.rs +++ b/extensions/components/build.rs @@ -9,17 +9,15 @@ fn main() { return; } - // The `embedded_p2p_delivery` feature compiles the FFI module, whose symbols - // resolve only against liblogosdelivery. The feature therefore *requires* the - // native library; if it can't be located, fail fast with actionable guidance - // rather than letting a downstream crate fail later with a confusing - // unresolved-import or link error. let Some(lib_dir) = locate_lib_dir() else { - panic!( - "embedded_p2p_delivery feature is enabled but liblogosdelivery could \ - not be located; enter the dev shell with `nix develop` or set \ - LOGOS_DELIVERY_LIB_DIR to the directory containing the library." + println!( + "cargo:warning=embedded_p2p_delivery feature is enabled but \ + liblogosdelivery could not be located; `cargo check`/`clippy` will \ + pass, but building or testing will fail at link. Enter the dev shell \ + with `nix develop` or set LOGOS_DELIVERY_LIB_DIR to the directory \ + containing the library." ); + return; }; let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR not set");