mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-30 01:58:11 +00:00
5eefcffc7c
First, we change the Protobuf definition includes to use an exact path relative to our crate's directory, instead of the OUT_DIR. This fixes build when a combination of stable and nightly toolchains is used (nightly is needed for the fuzzing targets). Another change is a slight fix in the panic handler conditional compilation. Fuzzing is using the crate with `features = ["test"]`, but doesn't turn on the `test` cfg. [no changelog]
60 lines
935 B
TOML
60 lines
935 B
TOML
[package]
|
|
name = "trezor_lib"
|
|
version = "0.1.0"
|
|
authors = ["SatoshiLabs <info@satoshilabs.com>"]
|
|
edition = "2018"
|
|
resolver = "2"
|
|
build = "build.rs"
|
|
|
|
[features]
|
|
bitcoin_only = []
|
|
ui = []
|
|
ui_debug = []
|
|
test = ["cc", "glob"]
|
|
|
|
[lib]
|
|
crate-type = ["staticlib"]
|
|
|
|
[profile.dev]
|
|
panic = "abort"
|
|
split-debuginfo = "unpacked"
|
|
|
|
[profile.release]
|
|
panic = "abort"
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
|
|
[profile.test]
|
|
split-debuginfo = "unpacked"
|
|
|
|
# Runtime dependencies
|
|
|
|
[dependencies.cty]
|
|
version = "0.2.1"
|
|
|
|
[dependencies.heapless]
|
|
version = "0.7.3"
|
|
default_features = false
|
|
|
|
[dependencies.cstr_core]
|
|
version = "0.2.4"
|
|
default_features = false
|
|
|
|
# Build dependencies
|
|
|
|
[build-dependencies.bindgen]
|
|
version = "0.59.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"
|