David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame] | 1 | [package] |
| 2 | name = "bootsim" |
| 3 | version = "0.1.0" |
| 4 | authors = ["David Brown <davidb@davidb.org>"] |
David Brown | 29b0b5e | 2019-01-02 16:04:16 -0700 | [diff] [blame] | 5 | edition = "2018" |
David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame] | 6 | |
David Brown | 704ac6f | 2017-07-12 10:14:47 -0600 | [diff] [blame] | 7 | [features] |
| 8 | default = [] |
| 9 | |
| 10 | sig-rsa = ["mcuboot-sys/sig-rsa"] |
Fabio Utzig | 3929743 | 2019-05-08 18:51:10 -0300 | [diff] [blame] | 11 | sig-rsa3072 = ["mcuboot-sys/sig-rsa3072"] |
Fabio Utzig | 8b619bd | 2017-12-05 08:48:34 -0200 | [diff] [blame] | 12 | sig-ecdsa = ["mcuboot-sys/sig-ecdsa"] |
Fabio Utzig | 9771028 | 2019-05-24 17:44:49 -0300 | [diff] [blame] | 13 | sig-ed25519 = ["mcuboot-sys/sig-ed25519"] |
Fabio Utzig | 100bb74 | 2017-09-13 17:18:36 -0300 | [diff] [blame] | 14 | overwrite-only = ["mcuboot-sys/overwrite-only"] |
Fabio Utzig | 031eb7d | 2019-11-28 10:13:14 -0300 | [diff] [blame] | 15 | swap-move = ["mcuboot-sys/swap-move"] |
David Vincze | 2d736ad | 2019-02-18 11:50:22 +0100 | [diff] [blame] | 16 | validate-primary-slot = ["mcuboot-sys/validate-primary-slot"] |
Fabio Utzig | 1e48b91 | 2018-09-18 09:04:18 -0300 | [diff] [blame] | 17 | enc-rsa = ["mcuboot-sys/enc-rsa"] |
| 18 | enc-kw = ["mcuboot-sys/enc-kw"] |
Fabio Utzig | 90f449e | 2019-10-24 07:43:53 -0300 | [diff] [blame] | 19 | enc-ec256 = ["mcuboot-sys/enc-ec256"] |
Fabio Utzig | 9b97b13 | 2018-12-18 17:21:51 -0200 | [diff] [blame] | 20 | bootstrap = ["mcuboot-sys/bootstrap"] |
David Brown | 5e6f5e0 | 2019-04-04 10:50:05 +0700 | [diff] [blame] | 21 | multiimage = ["mcuboot-sys/multiimage"] |
David Brown | 95de450 | 2019-11-15 12:01:34 -0700 | [diff] [blame] | 22 | large-write = [] |
David Brown | 2ee5f7f | 2020-01-13 14:04:01 -0700 | [diff] [blame] | 23 | downgrade-prevention = ["mcuboot-sys/downgrade-prevention"] |
David Brown | 704ac6f | 2017-07-12 10:14:47 -0600 | [diff] [blame] | 24 | |
David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame] | 25 | [dependencies] |
David Brown | 91d6863 | 2019-07-29 14:32:13 -0600 | [diff] [blame] | 26 | byteorder = "1.3" |
Fabio Utzig | 03cce47 | 2020-02-11 18:55:14 -0300 | [diff] [blame] | 27 | libc = "0.2" |
| 28 | rand = "0.4" |
| 29 | docopt = "1.1.0" |
David Brown | 046a0a6 | 2017-07-12 16:08:22 -0600 | [diff] [blame] | 30 | serde = "1.0" |
| 31 | serde_derive = "1.0" |
David Brown | e24244b | 2019-01-02 11:53:23 -0700 | [diff] [blame] | 32 | log = "0.4" |
Fabio Utzig | 25d7b0f | 2019-01-10 11:01:04 -0200 | [diff] [blame] | 33 | env_logger = "0.5" |
David Brown | 2cbc470 | 2017-07-06 14:18:58 -0600 | [diff] [blame] | 34 | simflash = { path = "simflash" } |
David Brown | 704ac6f | 2017-07-12 10:14:47 -0600 | [diff] [blame] | 35 | mcuboot-sys = { path = "mcuboot-sys" } |
Fabio Utzig | 03cce47 | 2020-02-11 18:55:14 -0300 | [diff] [blame] | 36 | ring = "0.16.11" |
| 37 | untrusted = "0.7" |
| 38 | pem = "0.7" |
Fabio Utzig | 25d7b0f | 2019-01-10 11:01:04 -0200 | [diff] [blame] | 39 | aes-ctr = "0.2.0" |
Fabio Utzig | 03cce47 | 2020-02-11 18:55:14 -0300 | [diff] [blame] | 40 | base64 = "0.11.0" |
David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame] | 41 | |
David Brown | dd2b118 | 2017-11-02 15:39:21 -0600 | [diff] [blame] | 42 | # The simulator runs very slowly without optimization. A value of 1 |
| 43 | # compiles in about half the time, but runs about 5-6 times slower. 2 |
| 44 | # and 3 are hardly different in either compile time or performance. |
| 45 | # Use 2 in case that makes the code slightly more debuggable. |
David Brown | de7729e | 2017-01-09 10:41:35 -0700 | [diff] [blame] | 46 | [profile.test] |
David Brown | dd2b118 | 2017-11-02 15:39:21 -0600 | [diff] [blame] | 47 | opt-level = 2 |
| 48 | |
| 49 | [profile.dev] |
| 50 | opt-level = 2 |