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-10-13 11:37:02 +00:00
|
|
|
model_tt = ["touch", "jpeg"]
|
2022-05-10 13:03:20 +00:00
|
|
|
model_tr = ["buttons"]
|
2022-06-08 08:31:23 +00:00
|
|
|
micropython = []
|
|
|
|
protobuf = ["micropython"]
|
2021-06-08 11:29:03 +00:00
|
|
|
ui = []
|
2022-08-16 14:51:10 +00:00
|
|
|
dma2d = []
|
2021-06-08 11:29:03 +00:00
|
|
|
ui_debug = []
|
2022-05-05 08:12:27 +00:00
|
|
|
bootloader = []
|
2022-05-10 13:03:20 +00:00
|
|
|
buttons = []
|
|
|
|
touch = []
|
|
|
|
clippy = []
|
2022-10-13 11:37:02 +00:00
|
|
|
jpeg = []
|
2022-07-20 09:18:37 +00:00
|
|
|
debug = ["ui_debug"]
|
2022-10-13 11:37:02 +00:00
|
|
|
test = ["cc", "glob", "micropython", "protobuf", "ui", "ui_debug", "dma2d"]
|
2021-05-31 13:12:02 +00:00
|
|
|
|
2021-03-23 12:14:33 +00:00
|
|
|
[lib]
|
|
|
|
crate-type = ["staticlib"]
|
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
panic = "abort"
|
2022-07-12 15:53:16 +00:00
|
|
|
split-debuginfo = "off"
|
|
|
|
debug = 2
|
2021-03-23 12:14:33 +00:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
panic = "abort"
|
|
|
|
opt-level = "z"
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
2022-07-12 15:53:16 +00:00
|
|
|
split-debuginfo = "off"
|
|
|
|
debug = 2
|
2021-03-23 12:14:33 +00:00
|
|
|
|
2021-06-15 07:54:20 +00:00
|
|
|
[profile.test]
|
2022-07-12 15:53:16 +00:00
|
|
|
split-debuginfo = "off"
|
2022-08-16 14:51:10 +00:00
|
|
|
debug = 2
|
2021-06-15 07:54:20 +00:00
|
|
|
|
|
|
|
# Runtime dependencies
|
|
|
|
|
|
|
|
[dependencies.cty]
|
2022-06-01 11:20:45 +00:00
|
|
|
version = "0.2.2"
|
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
|
|
|
|
|
2022-08-16 14:51:10 +00:00
|
|
|
[dependencies.num-traits]
|
|
|
|
version = "0.2.15"
|
|
|
|
default_features = false
|
|
|
|
|
|
|
|
[dependencies.num-derive]
|
|
|
|
version = "0.3.3"
|
|
|
|
|
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]
|
2022-03-05 17:50:49 +00:00
|
|
|
version = "0.60.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"
|