52 lines
1.4 KiB
TOML
52 lines
1.4 KiB
TOML
[package]
|
|
name = "bootsim"
|
|
version = "0.1.0"
|
|
authors = ["David Brown <davidb@davidb.org>"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = []
|
|
|
|
sig-rsa = ["mcuboot-sys/sig-rsa"]
|
|
sig-rsa3072 = ["mcuboot-sys/sig-rsa3072"]
|
|
sig-ecdsa = ["mcuboot-sys/sig-ecdsa"]
|
|
sig-ed25519 = ["mcuboot-sys/sig-ed25519"]
|
|
overwrite-only = ["mcuboot-sys/overwrite-only"]
|
|
swap-move = ["mcuboot-sys/swap-move"]
|
|
validate-primary-slot = ["mcuboot-sys/validate-primary-slot"]
|
|
enc-rsa = ["mcuboot-sys/enc-rsa"]
|
|
enc-kw = ["mcuboot-sys/enc-kw"]
|
|
enc-ec256 = ["mcuboot-sys/enc-ec256"]
|
|
enc-x25519 = ["mcuboot-sys/enc-x25519"]
|
|
bootstrap = ["mcuboot-sys/bootstrap"]
|
|
multiimage = ["mcuboot-sys/multiimage"]
|
|
large-write = []
|
|
downgrade-prevention = ["mcuboot-sys/downgrade-prevention"]
|
|
|
|
[dependencies]
|
|
byteorder = "1.3"
|
|
libc = "0.2"
|
|
rand = { version = "0.7", features = ["small_rng"] }
|
|
docopt = "1.1.0"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
log = "0.4"
|
|
env_logger = "0.7"
|
|
simflash = { path = "simflash" }
|
|
mcuboot-sys = { path = "mcuboot-sys" }
|
|
ring = "0.16.11"
|
|
untrusted = "0.7"
|
|
pem = "0.8"
|
|
aes-ctr = "0.2.0"
|
|
base64 = "0.12.0"
|
|
|
|
# The simulator runs very slowly without optimization. A value of 1
|
|
# compiles in about half the time, but runs about 5-6 times slower. 2
|
|
# and 3 are hardly different in either compile time or performance.
|
|
# Use 2 in case that makes the code slightly more debuggable.
|
|
[profile.test]
|
|
opt-level = 2
|
|
|
|
[profile.dev]
|
|
opt-level = 2
|