blob: 829d2eca91b4925b27ce0eb6c5f79a2abf21de82 [file] [log] [blame]
David Brown63902772017-07-12 09:47:49 -06001[package]
2name = "mcuboot-sys"
3version = "0.1.0"
4authors = ["David Brown <david.brown@linaro.org>"]
5description = "A simple wrapper around the mcuboot code."
6build = "build.rs"
7publish = false
David Brown65de6d12019-01-02 11:38:38 -07008edition = "2018"
David Brown63902772017-07-12 09:47:49 -06009
10[features]
11# By default, build with simplistic signature verification.
12default = []
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.
16sig-rsa = []
17
Fabio Utzig39297432019-05-08 18:51:10 -030018# Verify RSA-3072 signatures.
19sig-rsa3072 = []
20
Fabio Utzig8b619bd2017-12-05 08:48:34 -020021# Verify ECDSA (secp256r1) signatures.
David Brown63902772017-07-12 09:47:49 -060022sig-ecdsa = []
23
Fabio Utzig97710282019-05-24 17:44:49 -030024# Verify ED25519 signatures.
25sig-ed25519 = []
26
David Brown63902772017-07-12 09:47:49 -060027# Overwrite only upgrade
28overwrite-only = []
29
Fabio Utzig031eb7d2019-11-28 10:13:14 -030030swap-move = []
31
David Vincze2d736ad2019-02-18 11:50:22 +010032# Disable validation of the primary slot
33validate-primary-slot = []
Fabio Utzigebdc9692017-11-23 16:28:25 -020034
David Vincze2d736ad2019-02-18 11:50:22 +010035# Encrypt image in the secondary slot using RSA-OAEP-2048
Fabio Utzig1e48b912018-09-18 09:04:18 -030036enc-rsa = []
37
David Vincze2d736ad2019-02-18 11:50:22 +010038# Encrypt image in the secondary slot using AES-KW-128
Fabio Utzig1e48b912018-09-18 09:04:18 -030039enc-kw = []
40
Fabio Utzig90f449e2019-10-24 07:43:53 -030041# Encrypt image in the secondary slot using ECIES-P256
42enc-ec256 = []
43
Fabio Utzig3fa72ca2020-04-02 11:20:37 -030044# Encrypt image in the secondary slot using ECIES-X25519
45enc-x25519 = []
46
David Vincze2d736ad2019-02-18 11:50:22 +010047# Allow bootstrapping an empty/invalid primary slot from a valid secondary slot
Fabio Utzig9b97b132018-12-18 17:21:51 -020048bootstrap = []
49
David Brown5e6f5e02019-04-04 10:50:05 +070050# Support multiple images (currently 2 instead of 1).
51multiimage = []
52
David Brown2ee5f7f2020-01-13 14:04:01 -070053# Check (in software) against version downgrades.
54downgrade-prevention = []
55
David Brown63902772017-07-12 09:47:49 -060056[build-dependencies]
Fabio Utzig455cad52018-10-15 14:36:33 -070057cc = "1.0.25"
David Brown63902772017-07-12 09:47:49 -060058
59[dependencies]
Fabio Utzig03cce472020-02-11 18:55:14 -030060libc = "0.2"
David Brown28215642019-01-02 11:42:39 -070061log = "0.4"
David Brown63902772017-07-12 09:47:49 -060062simflash = { path = "../simflash" }
63
64# Optimize some, even when building for debugging, otherwise the tests
65# are too slow.
66[profile.test]
67opt-level = 1