Fixed dependency and linking errors

This commit is contained in:
mingxguo27
2020-09-15 11:11:47 +00:00
parent 69a440fddb
commit 6edf67ee2c
4 changed files with 9 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ edition = "2018"
[dependencies]
libtock_core = { path = "third_party/libtock-rs/core" }
libtock_drivers = { path = "third_party/libtock-drivers" }
#lang_items = { path = "third_party/lang-items" }
lang_items = { path = "third_party/lang-items" }
cbor = { path = "libraries/cbor" }
crypto = { path = "libraries/crypto" }
byteorder = { version = "1", default-features = false }
@@ -20,11 +20,10 @@ arrayref = "0.3.6"
subtle = { version = "2.2", default-features = false, features = ["nightly"] }
[features]
#debug_allocations = ["lang_items/debug_allocations"]
debug_allocations = ["lang_items/debug_allocations"]
debug_ctap = ["crypto/derive_debug", "libtock_drivers/debug_ctap"]
#panic_console = ["lang_items/panic_console"]
std = ["cbor/std", "crypto/std", "crypto/derive_debug"]
#, "lang_items/std"]
panic_console = ["lang_items/panic_console"]
std = ["cbor/std", "crypto/std", "crypto/derive_debug", "lang_items/std"]
ram_storage = []
verbose = ["debug_ctap", "libtock_drivers/verbose_usb"]
with_ctap1 = ["crypto/with_ctap1"]