-
Notifications
You must be signed in to change notification settings - Fork 22
/
Cargo.toml
144 lines (115 loc) · 4.57 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[package]
name = "embedded-runner-lib"
version = "0.0.1"
authors = ["Jan Nordholz <j.nordholz@tu-berlin.de"]
edition = "2018"
license = "ISC"
resolver = "2"
[dependencies]
### base dependencies
cfg-if = "*"
delog = "0.1"
cortex-m = "0.7"
cortex-m-rtic = "1.0"
embedded-storage = "0.3"
embedded-hal = "0.2.3"
embedded-time = "0.12"
generic-array = "0.14"
nfc-device = { path = "../../components/nfc-device" }
panic-halt = "0.2"
rand_core = "0.6"
rtt-target = { version = "0.3", features = ["cortex-m"] }
### protocols and dispatchers
apdu-dispatch = "0.1"
ctaphid-dispatch = "0.1"
ctap-types = "0.1"
### client apps
admin-app = { git = "https://github.com/solokeys/admin-app", optional = true }
fido-authenticator = { git = "https://github.com/solokeys/fido-authenticator", features = ["dispatch"], optional = true }
ndef-app = { path = "../../components/ndef-app", optional = true }
oath-authenticator = { git = "https://github.com/trussed-dev/oath-authenticator", features = ["apdu-dispatch"], optional = true }
piv-authenticator = { git = "https://github.com/solokeys/piv-authenticator", features = ["apdu-dispatch"], optional = true }
provisioner-app = { path = "../../components/provisioner-app", optional = true }
### trussed core
trussed = "0.1"
interchange = "0.2"
littlefs2 = { version = "0.3", features = ["c-stubs"] }
### usb machinery
usb-device = "0.2"
usbd-serial = "0.1"
usbd-ccid = { path = "../../components/usbd-ccid" }
usbd-ctaphid = { path = "../../components/usbd-ctaphid" }
### NRF52 specific dependencies
chacha20 = { version = "0.7", default-features = false, features = ["rng"], optional = true }
nrf52840-hal = { git = "https://github.com/nrf-rs/nrf-hal", optional = true }
nrf52840-pac = { version = "0.11", optional = true }
### LPC55 specific dependencies
lpc55-hal = { version = "0.3", features = ["littlefs", "rtic-peripherals"], optional = true }
lpc55-pac = { version = "0.4", optional = true }
fm11nc08 = { path = "../../components/fm11nc08", optional = true }
nb = "1"
[build-dependencies]
cargo-lock = "7"
serde = { version = "1", features = ["derive"] }
toml = "0.5"
[features]
complete = ["admin-app", "fido-authenticator", "ndef-app", "oath-authenticator",
"piv-authenticator", # "provisioner-app",
"fido-authenticator/disable-reset-time-window",
"trussed/clients-5", "log-traceP", "log-rtt"]
default = ["admin-app", "fido-authenticator", "ndef-app", "oath-authenticator", "trussed/clients-4"]
# develop = ["no-encrypted-storage", "no-buttons", "no-reset-time-window"]
# develop = ["no-encrypted-storage", "no-reset-time-window"]
# develop = ["no-encrypted-storage", "no-buttons"]
develop = ["no-encrypted-storage", "trussed/clients-4",
"fido-authenticator/disable-reset-time-window",
"log-traceP", "log-rtt"]
develop-piv = ["develop", "piv-authenticator", "trussed/clients-5"]
develop-provisioner = ["develop", "provisioner-app", "trussed/clients-5"]
# Do not use encryption for the filesystem
no-encrypted-storage = []
# Check for undefined flash and write to determined value (for prince provisioning)
write-undefined-flash = []
# Use to auto-succeed every user presence check
no-buttons = []
# Allow resetting FIDO authenticator (and possibly others) even after 10s uptime
no-reset-time-window = ["fido-authenticator/disable-reset-time-window"]
# Format filesystem anyway
format-filesystem = []
board-nrfdk = ["soc-nrf52840", "extflash_qspi"]
board-proto1 = ["soc-nrf52840"]
board-nk3am = ["soc-nrf52840", "extflash_qspi"]
board-lpcxpresso55 = ["soc-lpc55"]
board-okdoe1 = ["soc-lpc55", "board-lpcxpresso55"]
board-solo2 = ["soc-lpc55"]
board-nk3xn = ["soc-lpc55"]
soc-nrf52840 = ["nrf52840-hal", "nrf52840-pac", "chacha20", "provisioner-app/nrf52"]
soc-lpc55 = ["lpc55-hal", "lpc55-pac", "fm11nc08", "provisioner-app/lpc55"]
extflash_qspi = []
log-all = []
log-trace = []
log-debug = []
log-info = []
log-warn = []
log-error = []
log-none = []
log-traceP = [ "log-trace", "log-debug", "log-info", "log-warn", "log-error" ]
log-debugP = [ "log-debug", "log-info", "log-warn", "log-error" ]
log-infoP = [ "log-info", "log-warn", "log-error" ]
log-warnP = [ "log-warn", "log-error" ]
log-rtt = []
log-semihosting = []
[[bin]]
name = "nrf52_runner"
path = "src/bin/app-nrf.rs"
required-features = ["soc-nrf52840"]
[[bin]]
name = "lpc55_runner"
path = "src/bin/app-lpc.rs"
required-features = ["soc-lpc55"]
[patch.crates-io]
littlefs2 = { path = "../../components/littlefs2" }
lpc55-hal = { path = "../../components/lpc55-hal" }
trussed = { git = "https://github.com/jnordholz/trussed" }
[patch.'https://github.com/trussed-dev/trussed']
trussed = { git = "https://github.com/jnordholz/trussed" }