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"]
|
2024-01-22 12:44:02 +00:00
|
|
|
crypto = ["zeroize"]
|
2023-03-27 14:44:01 +00:00
|
|
|
model_tt = ["jpeg"]
|
|
|
|
model_tr = []
|
2024-04-07 11:34:12 +00:00
|
|
|
model_mercury = ["jpeg", "dma2d"]
|
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 = []
|
2024-04-16 13:52:17 +00:00
|
|
|
xframebuffer = []
|
|
|
|
display_mono = []
|
2024-04-16 13:53:13 +00:00
|
|
|
display_rgb565 = ["ui_antialiasing"]
|
|
|
|
display_rgba8888 = ["ui_antialiasing"]
|
2023-09-20 12:15:50 +00:00
|
|
|
framebuffer = []
|
|
|
|
framebuffer32bit = []
|
2021-06-08 11:29:03 +00:00
|
|
|
ui_debug = []
|
2023-03-21 22:32:43 +00:00
|
|
|
ui_bounds = []
|
2024-04-16 13:52:17 +00:00
|
|
|
ui_antialiasing = []
|
|
|
|
ui_blurring = []
|
|
|
|
ui_jpeg_decoder = ["jpeg"]
|
|
|
|
new_rendering = []
|
2022-05-05 08:12:27 +00:00
|
|
|
bootloader = []
|
2023-03-27 14:44:01 +00:00
|
|
|
button = []
|
2022-05-10 13:03:20 +00:00
|
|
|
touch = []
|
|
|
|
clippy = []
|
2022-10-13 11:37:02 +00:00
|
|
|
jpeg = []
|
2023-05-12 09:19:35 +00:00
|
|
|
disp_i8080_8bit_dw = [] # write pixels directly to peripheral
|
|
|
|
disp_i8080_16bit_dw = [] # write pixels directly to peripheral
|
2022-07-20 09:18:37 +00:00
|
|
|
debug = ["ui_debug"]
|
2023-03-27 14:44:01 +00:00
|
|
|
sbu = []
|
2023-08-24 09:30:29 +00:00
|
|
|
haptic = []
|
2023-03-27 14:44:01 +00:00
|
|
|
sd_card = []
|
|
|
|
rgb_led = []
|
2023-06-23 10:07:18 +00:00
|
|
|
backlight = []
|
2023-06-23 14:50:13 +00:00
|
|
|
usb = []
|
2023-08-23 13:42:16 +00:00
|
|
|
optiga = []
|
2024-01-22 12:44:02 +00:00
|
|
|
translations = ["crypto"]
|
2023-05-12 09:19:35 +00:00
|
|
|
test = [
|
2024-05-31 09:21:11 +00:00
|
|
|
"backlight",
|
2023-05-12 09:19:35 +00:00
|
|
|
"button",
|
|
|
|
"cc",
|
2024-01-22 12:44:02 +00:00
|
|
|
"crypto",
|
2024-05-31 09:21:11 +00:00
|
|
|
"dma2d",
|
2023-06-20 10:00:43 +00:00
|
|
|
"debug",
|
2023-05-12 09:19:35 +00:00
|
|
|
"glob",
|
|
|
|
"micropython",
|
2024-05-31 09:21:11 +00:00
|
|
|
"new_rendering",
|
|
|
|
"optiga",
|
2023-05-12 09:19:35 +00:00
|
|
|
"protobuf",
|
2024-05-31 09:21:11 +00:00
|
|
|
"touch",
|
|
|
|
"translations",
|
2023-05-12 09:19:35 +00:00
|
|
|
"ui",
|
2024-04-16 13:53:13 +00:00
|
|
|
"ui_jpeg_decoder",
|
|
|
|
"ui_blurring",
|
2024-03-07 12:27:41 +00:00
|
|
|
"universal_fw",
|
2023-05-12 09:19:35 +00:00
|
|
|
]
|
2024-03-07 12:27:41 +00:00
|
|
|
universal_fw = []
|
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
|
|
|
|
2023-05-23 10:41:47 +00:00
|
|
|
[profile.release.package.trezor-tjpgdec]
|
|
|
|
opt-level = 3
|
|
|
|
|
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
|
|
|
|
2023-02-16 18:55:34 +00:00
|
|
|
[dependencies]
|
|
|
|
qrcodegen = { version = "1.8.0", path = "../../vendor/QR-Code-generator/rust-no-heap" }
|
2024-04-02 13:49:33 +00:00
|
|
|
spin = { version = "0.9.8", features = ["rwlock"], default-features = false }
|
2023-05-23 10:41:47 +00:00
|
|
|
trezor-tjpgdec = { version = "0.1.0", path = "../../../rust/trezor-tjpgdec" }
|
2024-04-04 12:23:01 +00:00
|
|
|
ufmt = "0.2.0"
|
2024-01-22 12:44:02 +00:00
|
|
|
zeroize = { version = "1.7.0", default-features = false, optional = true }
|
2023-02-16 18:55:34 +00:00
|
|
|
|
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]
|
2024-04-04 12:23:01 +00:00
|
|
|
version = "0.8.0"
|
|
|
|
features = ["ufmt"]
|
2021-06-08 11:29:03 +00:00
|
|
|
default_features = false
|
|
|
|
|
2022-08-16 14:51:10 +00:00
|
|
|
[dependencies.num-traits]
|
2024-04-19 07:38:06 +00:00
|
|
|
version = "0.2.18"
|
2022-08-16 14:51:10 +00:00
|
|
|
default_features = false
|
2024-04-19 07:38:06 +00:00
|
|
|
features = ["libm"]
|
2022-08-16 14:51:10 +00:00
|
|
|
|
|
|
|
[dependencies.num-derive]
|
|
|
|
version = "0.3.3"
|
|
|
|
|
2024-04-16 13:53:13 +00:00
|
|
|
[dependencies.static-alloc]
|
|
|
|
version = "0.2.4"
|
|
|
|
|
|
|
|
[dependencies.without-alloc]
|
|
|
|
version = "0.2.2"
|
|
|
|
|
|
|
|
[dependencies.unsize]
|
|
|
|
version = "1.1.0"
|
|
|
|
|
2024-04-19 07:38:06 +00:00
|
|
|
[dependencies.pareen]
|
|
|
|
version = "0.3.3"
|
|
|
|
path = "../../../rust/pareen"
|
|
|
|
default-features = false
|
|
|
|
features = ["libm", "easer"]
|
|
|
|
|
|
|
|
[dependencies.easer]
|
|
|
|
version = "0.3.0"
|
|
|
|
default-features = false
|
|
|
|
features = ["libm"]
|
|
|
|
|
|
|
|
|
2021-06-15 07:54:20 +00:00
|
|
|
# Build dependencies
|
|
|
|
|
2021-06-12 10:19:31 +00:00
|
|
|
[build-dependencies.bindgen]
|
2024-05-06 10:54:48 +00:00
|
|
|
version = "0.62.0"
|
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"
|
2023-04-13 14:01:40 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
serde_json = "1.0.96"
|