2021-03-23 12:14:33 +00:00
|
|
|
[package]
|
|
|
|
name = "trezor_lib"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["SatoshiLabs <info@satoshilabs.com>"]
|
2021-12-07 10:52:34 +00:00
|
|
|
edition = "2021"
|
2021-03-23 12:14:33 +00:00
|
|
|
build = "build.rs"
|
|
|
|
|
2021-05-31 13:12:02 +00:00
|
|
|
[features]
|
2021-08-02 20:23:19 +00:00
|
|
|
default = ["model_tt"]
|
2021-05-31 13:12:02 +00:00
|
|
|
bitcoin_only = []
|
2022-05-10 13:03:20 +00:00
|
|
|
model_tt = ["touch"]
|
|
|
|
model_t1 = ["buttons"]
|
|
|
|
model_tr = ["buttons"]
|
2021-06-08 11:29:03 +00:00
|
|
|
ui = []
|
|
|
|
ui_debug = []
|
2022-05-10 13:03:20 +00:00
|
|
|
buttons = []
|
|
|
|
touch = []
|
|
|
|
clippy = []
|
2021-06-12 10:19:31 +00:00
|
|
|
test = ["cc", "glob"]
|
2021-05-31 13:12:02 +00:00
|
|
|
|
2021-03-23 12:14:33 +00:00
|
|
|
[lib]
|
|
|
|
crate-type = ["staticlib"]
|
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
panic = "abort"
|
|
|
|
split-debuginfo = "unpacked"
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
panic = "abort"
|
|
|
|
opt-level = "z"
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
|
|
|
|
2021-06-15 07:54:20 +00:00
|
|
|
[profile.test]
|
|
|
|
split-debuginfo = "unpacked"
|
|
|
|
|
|
|
|
# Runtime dependencies
|
|
|
|
|
|
|
|
[dependencies.cty]
|
|
|
|
version = "0.2.1"
|
2021-03-23 12:14:33 +00:00
|
|
|
|
2021-06-08 11:29:03 +00:00
|
|
|
[dependencies.heapless]
|
|
|
|
version = "0.7.3"
|
|
|
|
default_features = false
|
|
|
|
|
2021-03-23 12:14:33 +00:00
|
|
|
[dependencies.cstr_core]
|
2021-06-08 11:29:03 +00:00
|
|
|
version = "0.2.4"
|
2021-03-23 12:14:33 +00:00
|
|
|
default_features = false
|
|
|
|
|
2021-06-15 07:54:20 +00:00
|
|
|
# Build dependencies
|
|
|
|
|
2021-06-12 10:19:31 +00:00
|
|
|
[build-dependencies.bindgen]
|
2021-06-08 11:29:03 +00:00
|
|
|
version = "0.59.1"
|
2021-06-12 10:19:31 +00:00
|
|
|
default_features = false
|
|
|
|
features = ["runtime"]
|
|
|
|
|
2021-06-15 07:54:20 +00:00
|
|
|
# Build dependencies used for linking the test binary
|
|
|
|
|
2021-06-12 10:19:31 +00:00
|
|
|
[build-dependencies.cc]
|
|
|
|
optional = true
|
2021-06-08 11:29:03 +00:00
|
|
|
version = "1.0.69"
|
2021-06-12 10:19:31 +00:00
|
|
|
|
|
|
|
[build-dependencies.glob]
|
|
|
|
optional = true
|
|
|
|
version = "0.3.0"
|