From 64a6bd97a824280f606c5fc9b6ec690cd3de5055 Mon Sep 17 00:00:00 2001 From: MoCipher Date: Fri, 20 Feb 2026 09:16:54 +0100 Subject: [PATCH] chore(core): make hidapi optional behind feature --- core/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/Cargo.toml b/core/Cargo.toml index 86fc1f5..15ee624 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -36,7 +36,11 @@ keyring = "1.0" anyhow = "1.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -hidapi = "1.3" +hidapi = { version = "1.3", optional = true } + +[features] +# Enable hardware wallet / HID support (requires system libusb) +hw-wallet = ["hidapi"] # Direct runtime/test dependencies used by core rusqlite = "0.29"