From 64c66b91f526ee7e501d730687fa8b1d1378eeb7 Mon Sep 17 00:00:00 2001 From: Mirna Date: Tue, 27 Oct 2020 10:05:06 +0200 Subject: [PATCH] Fixed NFC feature flag --- Cargo.toml | 2 +- third_party/libtock-drivers/Cargo.toml | 1 + third_party/libtock-drivers/src/lib.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 00bd7d2..8faf8dd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ ram_storage = [] verbose = ["debug_ctap", "libtock_drivers/verbose_usb"] with_ctap1 = ["crypto/with_ctap1"] with_ctap2_1 = [] -with_nfc = [] +with_nfc = ["libtock_drivers/with_nfc"] [dev-dependencies] elf2tab = "0.6.0" diff --git a/third_party/libtock-drivers/Cargo.toml b/third_party/libtock-drivers/Cargo.toml index 74fe7ac..41e5c32 100644 --- a/third_party/libtock-drivers/Cargo.toml +++ b/third_party/libtock-drivers/Cargo.toml @@ -14,3 +14,4 @@ libtock_core = { path = "../../third_party/libtock-rs/core" } [features] debug_ctap = [] verbose_usb = ["debug_ctap"] +with_nfc=[] diff --git a/third_party/libtock-drivers/src/lib.rs b/third_party/libtock-drivers/src/lib.rs index ec8a2d7..8b8983c 100644 --- a/third_party/libtock-drivers/src/lib.rs +++ b/third_party/libtock-drivers/src/lib.rs @@ -3,6 +3,7 @@ pub mod buttons; pub mod console; pub mod led; +#[cfg(feature = "with_nfc")] pub mod nfc; pub mod result; pub mod rng;