David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 1 | [package] |
| 2 | name = "mcuboot-sys" |
| 3 | version = "0.1.0" |
| 4 | authors = ["David Brown <david.brown@linaro.org>"] |
| 5 | description = "A simple wrapper around the mcuboot code." |
| 6 | build = "build.rs" |
| 7 | publish = false |
David Brown | 65de6d1 | 2019-01-02 11:38:38 -0700 | [diff] [blame] | 8 | edition = "2018" |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 9 | |
| 10 | [features] |
| 11 | # By default, build with simplistic signature verification. |
| 12 | default = [] |
| 13 | |
| 14 | # Verify RSA signatures. Note that at this time, the C code will not |
| 15 | # compile with both sig-rsa and sig-ecdsa enabled. |
| 16 | sig-rsa = [] |
| 17 | |
Fabio Utzig | 8b619bd | 2017-12-05 08:48:34 -0200 | [diff] [blame] | 18 | # Verify ECDSA (secp256r1) signatures. |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 19 | sig-ecdsa = [] |
| 20 | |
| 21 | # Overwrite only upgrade |
| 22 | overwrite-only = [] |
| 23 | |
Fabio Utzig | ebdc969 | 2017-11-23 16:28:25 -0200 | [diff] [blame] | 24 | # Disable validation of slot0 |
| 25 | validate-slot0 = [] |
| 26 | |
Fabio Utzig | 1e48b91 | 2018-09-18 09:04:18 -0300 | [diff] [blame] | 27 | # Encrypt image in slot1 using RSA-OAEP-2048 |
| 28 | enc-rsa = [] |
| 29 | |
| 30 | # Encrypt image in slot1 using AES-KW-128 |
| 31 | enc-kw = [] |
| 32 | |
Fabio Utzig | 9b97b13 | 2018-12-18 17:21:51 -0200 | [diff] [blame] | 33 | # Allow bootstrapping an empty/invalid slot0 from a valid slot1 |
| 34 | bootstrap = [] |
| 35 | |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 36 | [build-dependencies] |
Fabio Utzig | 455cad5 | 2018-10-15 14:36:33 -0700 | [diff] [blame] | 37 | cc = "1.0.25" |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 38 | |
| 39 | [dependencies] |
David Brown | e24244b | 2019-01-02 11:53:23 -0700 | [diff] [blame] | 40 | lazy_static = "1.2" |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 41 | libc = "0.2.0" |
David Brown | 2821564 | 2019-01-02 11:42:39 -0700 | [diff] [blame] | 42 | log = "0.4" |
David Brown | 6390277 | 2017-07-12 09:47:49 -0600 | [diff] [blame] | 43 | simflash = { path = "../simflash" } |
| 44 | |
| 45 | # Optimize some, even when building for debugging, otherwise the tests |
| 46 | # are too slow. |
| 47 | [profile.test] |
| 48 | opt-level = 1 |