Skip to content

Commit e8b4699

Browse files
committed
Use shared hidraw library
1 parent 80545bf commit e8b4699

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Update apt cache
1919
run: sudo apt-get update
2020
- name: Install system dependencies
21-
run: sudo apt-get install libudev-dev libdbus-1-dev libsodium-dev
21+
run: sudo apt-get install libhidapi-dev libudev-dev libdbus-1-dev libsodium-dev
2222
- name: Build
2323
run: cargo build
2424
- name: Run tests

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ $ cargo run --example webauthn_cable
6060
$ cargo run --example u2f_hid
6161
```
6262

63+
## Package Requirements
64+
65+
- libhidapi-dev/hidapi-devel
66+
6367
## Contributing
6468

6569
We welcome contributions!

libwebauthn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ curve25519-dalek = "4.1.3"
4949
hex = "0.4.3"
5050
mockall = "0.13.1"
5151
hidapi = { version = "2.4.1", default-features = false, features = [
52-
"linux-static-hidraw",
52+
"linux-shared-hidraw",
5353
] }
5454
bitflags = "2.4.1"
5555
rand = "0.8.5"

0 commit comments

Comments
 (0)