2017-01-10 01:41:35 +08:00
|
|
|
[package]
|
|
|
|
name = "bootsim"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["David Brown <davidb@davidb.org>"]
|
2019-01-03 07:04:16 +08:00
|
|
|
edition = "2018"
|
2017-01-10 01:41:35 +08:00
|
|
|
|
2017-07-13 00:14:47 +08:00
|
|
|
[features]
|
|
|
|
default = []
|
|
|
|
|
|
|
|
sig-rsa = ["mcuboot-sys/sig-rsa"]
|
2019-05-09 05:51:10 +08:00
|
|
|
sig-rsa3072 = ["mcuboot-sys/sig-rsa3072"]
|
2017-12-05 18:48:34 +08:00
|
|
|
sig-ecdsa = ["mcuboot-sys/sig-ecdsa"]
|
2019-05-25 04:44:49 +08:00
|
|
|
sig-ed25519 = ["mcuboot-sys/sig-ed25519"]
|
2017-09-14 04:18:36 +08:00
|
|
|
overwrite-only = ["mcuboot-sys/overwrite-only"]
|
2019-11-28 21:13:14 +08:00
|
|
|
swap-move = ["mcuboot-sys/swap-move"]
|
2019-02-18 18:50:22 +08:00
|
|
|
validate-primary-slot = ["mcuboot-sys/validate-primary-slot"]
|
2018-09-18 20:04:18 +08:00
|
|
|
enc-rsa = ["mcuboot-sys/enc-rsa"]
|
|
|
|
enc-kw = ["mcuboot-sys/enc-kw"]
|
2019-10-24 18:43:53 +08:00
|
|
|
enc-ec256 = ["mcuboot-sys/enc-ec256"]
|
2020-04-02 22:20:37 +08:00
|
|
|
enc-x25519 = ["mcuboot-sys/enc-x25519"]
|
2018-12-19 03:21:51 +08:00
|
|
|
bootstrap = ["mcuboot-sys/bootstrap"]
|
2019-04-04 11:50:05 +08:00
|
|
|
multiimage = ["mcuboot-sys/multiimage"]
|
2019-11-16 03:01:34 +08:00
|
|
|
large-write = []
|
2020-01-14 05:04:01 +08:00
|
|
|
downgrade-prevention = ["mcuboot-sys/downgrade-prevention"]
|
2017-07-13 00:14:47 +08:00
|
|
|
|
2017-01-10 01:41:35 +08:00
|
|
|
[dependencies]
|
2019-07-30 04:32:13 +08:00
|
|
|
byteorder = "1.3"
|
2020-02-12 05:55:14 +08:00
|
|
|
libc = "0.2"
|
2020-07-10 05:46:53 +08:00
|
|
|
rand = { version = "0.7", features = ["small_rng"] }
|
2020-02-12 05:55:14 +08:00
|
|
|
docopt = "1.1.0"
|
2017-07-13 06:08:22 +08:00
|
|
|
serde = "1.0"
|
|
|
|
serde_derive = "1.0"
|
2019-01-03 02:53:23 +08:00
|
|
|
log = "0.4"
|
2020-07-10 05:48:23 +08:00
|
|
|
env_logger = "0.7"
|
2017-07-07 04:18:58 +08:00
|
|
|
simflash = { path = "simflash" }
|
2017-07-13 00:14:47 +08:00
|
|
|
mcuboot-sys = { path = "mcuboot-sys" }
|
2020-02-12 05:55:14 +08:00
|
|
|
ring = "0.16.11"
|
|
|
|
untrusted = "0.7"
|
2020-07-10 05:50:44 +08:00
|
|
|
pem = "0.8"
|
2020-07-10 06:52:38 +08:00
|
|
|
aes-ctr = "0.4.0"
|
2020-07-10 05:53:07 +08:00
|
|
|
base64 = "0.12.0"
|
2017-01-10 01:41:35 +08:00
|
|
|
|
2017-11-03 05:39:21 +08:00
|
|
|
# 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.
|
2017-01-10 01:41:35 +08:00
|
|
|
[profile.test]
|
2017-11-03 05:39:21 +08:00
|
|
|
opt-level = 2
|
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
opt-level = 2
|