forked from lpc55/lpc55-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
101 lines (90 loc) · 2.65 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
[package]
name = "lpc55"
version = "0.1.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.7"
anyhow = "1"
atty = "0.2.14"
base64 = "0.13"
bitflags = "1.2.1"
chrono = "0.4.19"
clap = { version = "3", features = ["cargo"], optional = true }
ctr = "0.8"
delog = "0.1.0-alpha.2"
enum-iterator = "0.7.0"
hex = "0.4.2"
hmac = "0.12"
hidapi = { version = "1.2.3", default-features = false, features = ["linux-static-hidraw"] }
nom = { version = "7" }
serde = { version = "1", features = ["derive"] }
serde-big-array = "0.3.0"
serde_json = "1"
serde_yaml = "0.8.14"
signature = "1.3.0"
log = "0.4.11"
lazy_static = "1.4.0"
oid-registry = "0.2"
pem-parser = "0.1.1"
rand = "0.8.1"
rsa = "0.5"
sha2 = "0.10"
thiserror = "1"
tiny_http = { version = "0.9", optional = true }
toml = "0.5.7"
x509-parser = { version = "0.12", features = ["verify"] }
uriparse = "0.6.3"
uuid = "0.8.2"
pkcs11 = "0.5.0"
pkcs11-uri = "0.1.2"
# progressbar
indicatif = { version = "0.16.2", optional = true }
[dev-dependencies]
insta = "1.1.0"
tempfile = "3.2.0"
assert_cmd = "2"
predicates = "2"
[build-dependencies]
clap = { version = "3", features = ["cargo"] }
clap_complete = "3"
lazy_static = "1.4.0"
[features]
default = ["cli"]
cli = ["clap", "http", "progressbar"]
http = ["tiny_http"]
progressbar = ["indicatif"]
# 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"