Skip to content

Commit 93089ea

Browse files
authored
implement bluetooth (#272)
make cancel async, improve fragmentation btle: somewhat working btle: test and document more async fixing fix formatting add bluetooth to CI btle: more cleanups * rename `btle` to `bluetooth` * don't use `bluetooth` feature with `cable` * add more `btleplug` stubs * feature flag unused code rename btle more btle... Fix up some documentation issues add framing tests add note about flakyness
1 parent 833f694 commit 93089ea

File tree

10 files changed

+1267
-7
lines changed

10 files changed

+1267
-7
lines changed

.github/doc_manifest

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fido_mds/index.html
77
fido_mds_tool/index.html
88

99
webauthn_authenticator_rs/index.html
10+
webauthn_authenticator_rs/bluetooth/index.html
1011
webauthn_authenticator_rs/cable/index.html
1112
webauthn_authenticator_rs/nfc/index.html
1213
webauthn_authenticator_rs/usb/index.html

.github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ jobs:
6969
rust_version: [stable, 1.66.0]
7070
features:
7171
- ""
72+
- --features bluetooth
7273
- --features cable
7374
- --features nfc
7475
- --features usb
75-
- --features nfc,usb
76-
- --features cable,nfc,usb
76+
- --features bluetooth,nfc,usb
77+
- --features cable,bluetooth,nfc,usb
7778
os:
7879
- ubuntu-latest
7980
- windows-latest
@@ -82,7 +83,7 @@ jobs:
8283
features: --features win10
8384
rust_version: stable
8485
- os: windows-latest
85-
features: --features cable,nfc,usb,win10
86+
features: --features cable,bluetooth,nfc,usb,win10
8687
rust_version: stable
8788
exclude:
8889
- os: windows-latest
@@ -105,7 +106,7 @@ jobs:
105106
run: sudo apt-get -y install libpcsclite-dev
106107
- if: contains(matrix.features, 'usb') && runner.os != 'windows'
107108
run: sudo apt-get -y install libusb-1.0-0-dev
108-
- if: contains(matrix.features, 'cable') && runner.os != 'windows'
109+
- if: (contains(matrix.features, 'bluetooth') || contains(matrix.features, 'cable')) && runner.os != 'windows'
109110
run: sudo apt-get -y install libdbus-1-dev
110111

111112
- if: runner.os == 'windows'

webauthn-authenticator-rs/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/kanidm/webauthn-rs"
1212
[features]
1313
nfc_raw_transmit = ["nfc"]
1414
u2fhid = ["authenticator"]
15+
bluetooth = ["btleplug", "tokio"]
1516

1617
# caBLE / hybrid authenticator
1718
cable = ["btleplug", "hex", "tokio", "tokio-tungstenite", "qrcode"]

0 commit comments

Comments
 (0)