The alarm syscall is implemented in libtock-rs, but was duplicated here. This removes the duplicated code and changes the references to point to libtock-rs directly. Co-authored-by: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com>
71 lines
2.5 KiB
TOML
71 lines
2.5 KiB
TOML
[package]
|
|
name = "ctap2"
|
|
version = "1.0.0"
|
|
authors = [
|
|
"Fabian Kaczmarczyck <kaczmarczyck@google.com>",
|
|
"Guillaume Endignoux <guillaumee@google.com>",
|
|
"Jean-Michel Picod <jmichel@google.com>",
|
|
"Julien Cretin <cretin@google.com>",
|
|
]
|
|
license = "Apache-2.0"
|
|
edition = "2018"
|
|
|
|
[target.'cfg(any(target_arch = "arm", target_arch = "riscv32"))'.dependencies.libtock_runtime]
|
|
path = "third_party/libtock-rs/runtime"
|
|
default-features = false
|
|
features = ["no_auto_layout", "no_debug_memop"]
|
|
|
|
[dependencies]
|
|
libtock_buttons = { path = "third_party/libtock-rs/apis/buttons" }
|
|
libtock_platform = { path = "third_party/libtock-rs/platform" }
|
|
libtock_drivers = { path = "third_party/libtock-drivers" }
|
|
libtock_alarm = { path = "third_party/libtock-rs/apis/alarm" }
|
|
libtock_console = { path = "third_party/libtock-rs/apis/console" }
|
|
libtock_leds = { path = "third_party/libtock-rs/apis/leds" }
|
|
lang_items = { path = "third_party/lang-items" }
|
|
opensk = { path = "libraries/opensk", default-features = false }
|
|
sk-cbor = { path = "libraries/cbor" }
|
|
crypto = { path = "libraries/crypto" }
|
|
persistent_store = { path = "libraries/persistent_store" }
|
|
libtock_unittest = { path = "third_party/libtock-rs/unittest", optional = true }
|
|
byteorder = { version = "1", default-features = false }
|
|
arrayref = "0.3.6"
|
|
rand_core = "0.6.4"
|
|
ed25519-compact = { version = "1", default-features = false, optional = true }
|
|
|
|
[features]
|
|
config_command = ["opensk/config_command"]
|
|
debug_allocations = ["lang_items/debug_allocations"]
|
|
debug_ctap = ["libtock_drivers/debug_ctap", "opensk/debug_ctap"]
|
|
panic_console = ["lang_items/panic_console"]
|
|
std = ["crypto/std", "lang_items/std", "persistent_store/std", "opensk/std", "libtock_unittest"]
|
|
verbose = ["debug_ctap", "libtock_drivers/verbose_usb"]
|
|
with_ctap1 = ["crypto/with_ctap1", "opensk/with_ctap1"]
|
|
with_nfc = ["libtock_drivers/with_nfc"]
|
|
vendor_hid = ["opensk/vendor_hid"]
|
|
ed25519 = ["ed25519-compact", "opensk/ed25519"]
|
|
rust_crypto = ["opensk/rust_crypto"]
|
|
|
|
[dev-dependencies]
|
|
enum-iterator = "0.6.0"
|
|
|
|
[build-dependencies]
|
|
sk-cbor = { path = "libraries/cbor" }
|
|
uuid = { version = "0.8", features = ["v4"] }
|
|
openssl = "0.10.36"
|
|
|
|
[profile.dev]
|
|
panic = "abort"
|
|
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
|
|
opt-level = "z"
|
|
codegen-units = 1
|
|
|
|
[profile.release.package]
|
|
aes = { opt-level = 3 }
|
|
sha2 = { opt-level = 3 }
|
|
p256 = { opt-level = 3 }
|