Fixed NFC feature flag

This commit is contained in:
Mirna
2020-10-27 10:05:06 +02:00
parent e37f63396c
commit 64c66b91f5
3 changed files with 3 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ ram_storage = []
verbose = ["debug_ctap", "libtock_drivers/verbose_usb"] verbose = ["debug_ctap", "libtock_drivers/verbose_usb"]
with_ctap1 = ["crypto/with_ctap1"] with_ctap1 = ["crypto/with_ctap1"]
with_ctap2_1 = [] with_ctap2_1 = []
with_nfc = [] with_nfc = ["libtock_drivers/with_nfc"]
[dev-dependencies] [dev-dependencies]
elf2tab = "0.6.0" elf2tab = "0.6.0"

View File

@@ -14,3 +14,4 @@ libtock_core = { path = "../../third_party/libtock-rs/core" }
[features] [features]
debug_ctap = [] debug_ctap = []
verbose_usb = ["debug_ctap"] verbose_usb = ["debug_ctap"]
with_nfc=[]

View File

@@ -3,6 +3,7 @@
pub mod buttons; pub mod buttons;
pub mod console; pub mod console;
pub mod led; pub mod led;
#[cfg(feature = "with_nfc")]
pub mod nfc; pub mod nfc;
pub mod result; pub mod result;
pub mod rng; pub mod rng;