-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
102 lines (91 loc) · 2.74 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "lpc55"
version = "0.2.1"
authors = ["Nicolas Stalder <[email protected]>"]
edition = "2021"
description = "Host-side tooling to interact with LPC55 chips via the ROM bootloader"
repository = "https://github.com/lpc55/lpc55-host"
homepage = "https://github.com/lpc55/lpc55-host"
readme = "README.md"
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/lpc55"
keywords = ["cortex-m", "nxp", "lpc"]
categories = ["command-line-utilities", "config", "development-tools", "embedded", "hardware-support"]
exclude = ["pkg"]
[[bin]]
name = "lpc55"
required-features = ["cli"]
[dependencies]
aes = "0.8"
anyhow = "1"
atty = "0.2.14"
base64 = "0.21"
bitflags = "1.2.1"
chrono = "0.4.19"
clap = { version = "4", features = ["cargo", "derive"], optional = true }
clap-verbosity-flag = { version = "2", optional = true }
ctr = "0.9"
delog = "0.1.0-alpha.2"
enum-iterator = "1"
hex = "0.4.2"
hmac = "0.12"
hidapi = { version = "2", default-features = false, features = ["linux-static-hidraw"] }
nom = { version = "7" }
serde = { version = "1", features = ["derive"] }
serde-big-array = "0.4.0"
serde_json = "1"
serde_yaml = "0.9"
signature = "1"
log = "0.4.11"
lazy_static = "1.4.0"
oid-registry = "0.6"
pem = "1.1"
rand = "0.8.1"
rsa = "0.6"
sha2 = { version = "0.10", features = ["oid"] }
thiserror = "1"
tiny_http = { version = "0.12", optional = true }
toml = "0.5.7"
x509-parser = { version = "0.14", features = ["verify"] }
uriparse = "0.6.3"
uuid = "1"
pkcs11 = "0.5.0"
pkcs11-uri = "0.1.2"
# progressbar
indicatif = { version = "0.17", optional = true }
[dev-dependencies]
insta = "1.1.0"
tempfile = "3.2.0"
assert_cmd = "2"
predicates = "2"
[build-dependencies]
clap = { version = "4", features = ["cargo", "derive"] }
clap_complete = "4"
clap-verbosity-flag = "2"
lazy_static = "1.4.0"
[features]
default = ["cli"]
cli = ["clap", "clap-verbosity-flag", "http", "indicatif"]
http = ["tiny_http"]
# Enable tests that require a mcuboot device attached
with-device = []
[patch.crates-io]
# uriparse = { path = "../uriparse-rs" }
# pkcs11-uri = { path = "../pkcs11-uri" }
# pkcs11-uri = { git = "https://github.com/nickray/pkcs11-uri", branch = "main" }
# 20201-01-25: brings `lpc55` size on Linux from 9.3M down to 5.4M, 3.2M after stripping
# [profile.release]
# opt-level = 'z'
# lto = true
# codegen-units = 1
[package.metadata.deb]
assets = [
# Binary
["target/release/lpc55", "usr/bin/", "755"],
# Completions
["target/release/_lpc55", "usr/share/zsh/vendor-completions/", "644"],
["target/release/lpc55.bash", "usr/share/bash-completion/completions/lpc55", "644"],
# udev rule
["pkg/debian/70-raw-lpc55-mcuboot.rules", "usr/lib/udev/rules.d/", "644"],
]
extended-description = "Host-side tooling to interact with LPC55 chips via the ROM bootloader"