Skip to content

Commit e1b5849

Browse files
committed
Add nfc transport with pcsc backend
1 parent 7397062 commit e1b5849

File tree

8 files changed

+759
-7
lines changed

8 files changed

+759
-7
lines changed

Cargo.lock

Lines changed: 59 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libwebauthn/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ path = "src/lib.rs"
1616
default = []
1717
hid-device-tests = ["virtual-hid-device"]
1818
virtual-hid-device = ["solo"]
19+
nfc = ["apdu-core", "apdu", "thiserror"]
20+
pcsc = [ "nfc", "dep:pcsc" ]
1921

2022
[dependencies]
2123
base64-url = "2.0.0"
@@ -65,6 +67,10 @@ tokio-stream = "0.1.4"
6567
snow = { version = "0.10.0-alpha.1", features = ["use-p256"] }
6668
ctap-types = { version = "0.3.2" }
6769
btleplug = "0.11.7"
70+
apdu-core = { version = "0.4.0", optional = true }
71+
apdu = { version = "0.4.0", optional = true }
72+
thiserror = { version = "2.0.12", optional = true }
73+
pcsc = { version = "2.9.0", optional = true }
6874

6975

7076
[dev-dependencies]

libwebauthn/src/transport/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ pub mod ble;
44
pub mod cable;
55
pub mod device;
66
pub mod hid;
7+
#[cfg(feature = "nfc")]
8+
pub mod nfc;
79

810
mod channel;
911
mod transport;

0 commit comments

Comments
 (0)