1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 09:58:27 +00:00
trezor-firmware/core/embed/rust/Cargo.toml
Martin Milata e60ed788f2 fix(core/rust/ui): add cargo flag for Component::bounds() support
Rarely used debugging feature.

[no changelog]
2023-03-23 20:16:22 +01:00

86 lines
1.4 KiB
TOML

[package]
name = "trezor_lib"
version = "0.1.0"
authors = ["SatoshiLabs <info@satoshilabs.com>"]
edition = "2021"
build = "build.rs"
[features]
default = ["model_tt"]
bitcoin_only = []
model_tt = ["touch", "jpeg"]
model_tr = ["buttons"]
micropython = []
protobuf = ["micropython"]
ui = []
dma2d = []
ui_debug = []
ui_bounds = []
bootloader = []
buttons = []
touch = []
clippy = []
jpeg = []
debug = ["ui_debug"]
test = ["cc", "glob", "micropython", "protobuf", "ui", "ui_debug", "dma2d"]
[lib]
crate-type = ["staticlib"]
[profile.dev]
panic = "abort"
split-debuginfo = "off"
debug = 2
[profile.release]
panic = "abort"
opt-level = "z"
lto = true
codegen-units = 1
split-debuginfo = "off"
debug = 2
[profile.test]
split-debuginfo = "off"
debug = 2
[dependencies]
qrcodegen = { version = "1.8.0", path = "../../vendor/QR-Code-generator/rust-no-heap" }
# Runtime dependencies
[dependencies.cty]
version = "0.2.2"
[dependencies.heapless]
version = "0.7.3"
default_features = false
[dependencies.num-traits]
version = "0.2.15"
default_features = false
[dependencies.num-derive]
version = "0.3.3"
[dependencies.cstr_core]
version = "0.2.4"
default_features = false
# Build dependencies
[build-dependencies.bindgen]
version = "0.60.1"
default_features = false
features = ["runtime"]
# Build dependencies used for linking the test binary
[build-dependencies.cc]
optional = true
version = "1.0.69"
[build-dependencies.glob]
optional = true
version = "0.3.0"