You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/embed/rust/Cargo.toml

93 lines
1.6 KiB

[package]
name = "trezor_lib"
version = "0.1.0"
authors = ["SatoshiLabs <info@satoshilabs.com>"]
edition = "2021"
build = "build.rs"
[features]
default = ["model_tt"]
bitcoin_only = []
zcash_shielded = [
"micropython", "pasta_curves", "blake2b_simd",
]
model_tt = ["touch"]
model_t1 = ["buttons"]
model_tr = ["buttons"]
micropython = []
protobuf = ["micropython"]
ui = []
ui_debug = []
buttons = []
touch = []
clippy = []
debug = ["ui_debug"]
test = ["cc", "glob", "micropython", "protobuf", "ui", "ui_debug", "zcash_shielded"]
[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"
# Runtime dependencies
[dependencies.cty]
version = "0.2.2"
[dependencies.heapless]
version = "0.7.3"
default_features = false
[dependencies.cstr_core]
version = "0.2.4"
default_features = false
[dependencies.blake2b_simd]
optional = true
version = "1"
default_features = false
[dependencies.pasta_curves]
optional = true
version = "0.4.1"
default-features = false
features = ["uninline-portable"]
# 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"
[patch.crates-io.blake2b_simd]
path = "./blake2b_hal"
[patch.crates-io.pasta_curves]
git = "https://github.com/jarys/pasta_curves"
rev = "e11dfe4089d0da24483094a99cceb89f32974c17"