From 701beb547dbe95cabd5f7aafead2a5ea272f762d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:05:11 +0000 Subject: [PATCH 1/2] Initial plan From 7e2cb27d9bee134513806a82465a5dbf8ba13ac3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 22:13:07 +0000 Subject: [PATCH 2/2] Fix build issue by using static hidraw and update README dependencies - Changed hidapi feature from linux-shared-hidraw to linux-static-hidraw - Added missing dependencies to README: libudev-dev, libdbus-1-dev, libsodium-dev, pkg-config - Static build includes newer hidapi with hid_send_output_report function Co-authored-by: AlfioEmanueleFresta <621062+AlfioEmanueleFresta@users.noreply.github.com> --- README.md | 4 ++++ libwebauthn/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 10ed684..918609f 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,10 @@ $ cargo run --example u2f_hid ## Package Requirements - libhidapi-dev/hidapi-devel +- libudev-dev/libudev-devel +- libdbus-1-dev/dbus-devel +- libsodium-dev/libsodium-devel +- pkg-config ## Contributing diff --git a/libwebauthn/Cargo.toml b/libwebauthn/Cargo.toml index 38ec51c..3ccbd94 100644 --- a/libwebauthn/Cargo.toml +++ b/libwebauthn/Cargo.toml @@ -50,7 +50,7 @@ curve25519-dalek = "4.1.3" hex = "0.4.3" mockall = "0.13.1" hidapi = { version = "2.4.1", default-features = false, features = [ - "linux-shared-hidraw", + "linux-static-hidraw", ] } bitflags = "2.4.1" rand = "0.8.5"