blob: 79a2663a44651b8f64f283355bdb023785e9c1ba [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 Utzig8b619bd2017-12-05 08:48:34 -020018# Verify ECDSA (secp256r1) signatures.
David Brown63902772017-07-12 09:47:49 -060019sig-ecdsa = []
20
21# Overwrite only upgrade
22overwrite-only = []
23
Fabio Utzigebdc9692017-11-23 16:28:25 -020024# Disable validation of slot0
25validate-slot0 = []
26
Fabio Utzig1e48b912018-09-18 09:04:18 -030027# Encrypt image in slot1 using RSA-OAEP-2048
28enc-rsa = []
29
30# Encrypt image in slot1 using AES-KW-128
31enc-kw = []
32
Fabio Utzig9b97b132018-12-18 17:21:51 -020033# Allow bootstrapping an empty/invalid slot0 from a valid slot1
34bootstrap = []
35
David Brown63902772017-07-12 09:47:49 -060036[build-dependencies]
Fabio Utzig455cad52018-10-15 14:36:33 -070037cc = "1.0.25"
David Brown63902772017-07-12 09:47:49 -060038
39[dependencies]
David Browne24244b2019-01-02 11:53:23 -070040lazy_static = "1.2"
David Brown63902772017-07-12 09:47:49 -060041libc = "0.2.0"
David Brown28215642019-01-02 11:42:39 -070042log = "0.4"
David Brown63902772017-07-12 09:47:49 -060043simflash = { path = "../simflash" }
44
45# Optimize some, even when building for debugging, otherwise the tests
46# are too slow.
47[profile.test]
48opt-level = 1