-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
311 lines (296 loc) · 10.3 KB
/
Copy pathCargo.toml
File metadata and controls
311 lines (296 loc) · 10.3 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
[workspace]
resolver = "2"
members = [
"api/lib",
"api/native",
"api/tests",
"api/tests/macro",
"crates/cred_encrypt",
"crates/crypto",
"crates/crypto/x509_builder/gen",
"crates/resiliency_macro",
"crates/resiliency_test_helpers",
"crates/session_ex_crypto",
"crates/test_with_tracing",
"crates/test_with_tracing/test_with_tracing_macro",
"crates/tpm",
"crates/x509",
"ddi/emu",
"ddi/interface",
"ddi/lib",
"ddi/mbor/codec",
"ddi/mbor/derive",
"ddi/mbor/sim",
"ddi/mbor/test_helpers",
"ddi/mbor/types",
"ddi/mock",
"ddi/nix",
"ddi/res_test_dev",
"ddi/sock",
"ddi/sock/proto",
"ddi/tbor/codec",
"ddi/tbor/derive",
"ddi/tbor/types",
"ddi/win",
"fw/core/crypto/aead-envelope",
"fw/core/crypto/aes-cbc-pad",
"fw/core/crypto/gcm-buf",
"fw/core/crypto/hpke",
"fw/core/crypto/key-derive",
"fw/core/crypto/key-masking",
"fw/core/crypto/key-report",
"fw/core/crypto/x509-builder",
"fw/core/crypto/x509-builder/gen",
"fw/core/crypto/x509-chain",
"fw/core/ddi/mbor/api",
"fw/core/ddi/mbor/codec",
"fw/core/ddi/mbor/derive",
"fw/core/ddi/mbor/types",
"fw/core/ddi/tbor/api",
"fw/core/ddi/tbor/codec",
"fw/core/ddi/tbor/derive",
"fw/core/ddi/tbor/types",
"fw/core/io",
"fw/core/key-decode",
"fw/core/key-unwrap",
"fw/core/lib",
"fw/core/oob",
"fw/core/tracing",
"fw/pal/traits",
"fw/plat/std/lib",
"fw/plat/std/pal",
"plugins/ossl_engine/engine",
"plugins/ossl_engine/engine-resiliency",
"plugins/ossl_engine/openssl-engine",
"plugins/ossl_engine/openssl-sys-engine",
"plugins/ossl_prov",
"plugins/ossl_prov/integration-tests/nginx",
"plugins/ossl_prov/integration-tests/openssl-capi",
"plugins/ossl_prov/integration-tests/openssl-cli",
"tools/resiliency_stress",
"xtask",
]
[workspace.dependencies]
# Internal crates
azihsm_api = { path = "api/lib" }
azihsm_api_native = { path = "api/native" }
azihsm_api_tests = { path = "api/tests" }
azihsm_api_tests_macro = { path = "api/tests/macro" }
azihsm_cred_encrypt = { path = "crates/cred_encrypt" }
azihsm_crypto = { path = "crates/crypto" }
azihsm_ddi = { path = "ddi/lib" }
azihsm_ddi_emu = { path = "ddi/emu" }
azihsm_ddi_interface = { path = "ddi/interface" }
azihsm_ddi_mbor_codec = { path = "ddi/mbor/codec" }
azihsm_ddi_mbor_derive = { path = "ddi/mbor/derive" }
azihsm_ddi_mbor_sim = { path = "ddi/mbor/sim" }
azihsm_ddi_mbor_test_helpers = { path = "ddi/mbor/test_helpers" }
azihsm_ddi_mbor_types = { features = [
"array",
"post_decode",
"pre_encode",
], path = "ddi/mbor/types" }
azihsm_ddi_mock = { path = "ddi/mock" }
azihsm_ddi_nix = { path = "ddi/nix" }
azihsm_ddi_sock = { path = "ddi/sock" }
azihsm_ddi_sock_proto = { path = "ddi/sock/proto" }
azihsm_ddi_tbor_codec = { path = "ddi/tbor/codec" }
azihsm_ddi_tbor_derive = { path = "ddi/tbor/derive" }
azihsm_ddi_tbor_types = { path = "ddi/tbor/types" }
azihsm_ddi_win = { path = "ddi/win" }
azihsm_res_test_dev = { path = "ddi/res_test_dev" }
azihsm_resiliency_test_helpers = { path = "crates/resiliency_test_helpers" }
azihsm_session_ex_crypto = { path = "crates/session_ex_crypto" }
azihsm_tpm = { path = "crates/tpm" }
openssl-engine = { path = "plugins/ossl_engine/openssl-engine" }
openssl-sys-engine = { path = "plugins/ossl_engine/openssl-sys-engine" }
resiliency_macro = { path = "crates/resiliency_macro" }
test_with_tracing = { path = "crates/test_with_tracing" }
test_with_tracing_macro = { path = "crates/test_with_tracing/test_with_tracing_macro" }
x509 = { path = "crates/x509" }
# Firmware crates — MBOR
azihsm_fw_ddi_mbor = { path = "fw/core/ddi/mbor/codec" }
azihsm_fw_ddi_mbor_api = { path = "fw/core/ddi/mbor/api" }
azihsm_fw_ddi_mbor_derive = { path = "fw/core/ddi/mbor/derive" }
azihsm_fw_ddi_mbor_types = { path = "fw/core/ddi/mbor/types" }
# Firmware crates — TBOR
azihsm_fw_ddi_tbor = { path = "fw/core/ddi/tbor/codec" }
azihsm_fw_ddi_tbor_api = { path = "fw/core/ddi/tbor/api" }
azihsm_fw_ddi_tbor_derive = { path = "fw/core/ddi/tbor/derive" }
azihsm_fw_ddi_tbor_types = { path = "fw/core/ddi/tbor/types" }
# Firmware crates — crypto
azihsm_fw_core_crypto_aead_envelope = { path = "fw/core/crypto/aead-envelope" }
azihsm_fw_core_crypto_aes_cbc_pad = { path = "fw/core/crypto/aes-cbc-pad" }
azihsm_fw_core_crypto_gcm_buf = { path = "fw/core/crypto/gcm-buf" }
azihsm_fw_core_crypto_hpke = { path = "fw/core/crypto/hpke" }
azihsm_fw_core_crypto_key_derive = { path = "fw/core/crypto/key-derive" }
azihsm_fw_core_crypto_key_masking = { path = "fw/core/crypto/key-masking" }
azihsm_fw_core_crypto_key_report = { path = "fw/core/crypto/key-report" }
azihsm_fw_core_crypto_x509_builder = { path = "fw/core/crypto/x509-builder" }
azihsm_fw_core_crypto_x509_builder_gen = { path = "fw/core/crypto/x509-builder/gen" }
azihsm_fw_core_crypto_x509_chain = { path = "fw/core/crypto/x509-chain" }
# Firmware crates — common
azihsm_crypto_x509_builder_gen = { path = "crates/crypto/x509_builder/gen" }
azihsm_fw_hsm_core = { path = "fw/core/lib" }
azihsm_fw_hsm_core_tracing = { path = "fw/core/tracing" }
azihsm_fw_hsm_io = { path = "fw/core/io" }
azihsm_fw_hsm_key_decode = { path = "fw/core/key-decode" }
azihsm_fw_hsm_key_unwrap = { path = "fw/core/key-unwrap" }
azihsm_fw_hsm_oob = { path = "fw/core/oob" }
azihsm_fw_hsm_pal_std = { path = "fw/plat/std/pal" }
azihsm_fw_hsm_pal_traits = { path = "fw/pal/traits" }
azihsm_fw_hsm_std = { path = "fw/plat/std/lib" }
# Embassy crates
embassy-executor = "0.10.0"
embassy-sync = "0.8.0"
# Public crates
anyhow = "1.0.103"
arbitrary = "1"
asn1 = "0.23.0"
async-channel = "2.0.0"
bindgen = "0.71"
bitfield = "0.19.1"
bitfield-struct = "0.13.0"
bitflags = "2.10.0"
cfg-if = "1"
chrono = "0.4.31"
clap = "4.2"
cmake = "0.1.57"
critical-section = "1.2.0"
darling = "0.20.11"
delegate = "0.13.3"
der = "0.7.8"
env_logger = "0.11.8"
foreign-types = "0.3"
fs2 = "0.4.3"
getrandom = "0.2"
glob = "0.3"
hex = "0.4.3"
is-terminal = "0.4"
itertools = "0.14.0"
junit-parser = "1.5.1"
jzon = "0.12.5"
lazy_static = "1.5.0"
libc = "0.2"
libtest-mimic = "0.8.1"
lit = "1.0.4"
log = "0.4"
memmap2 = "0.9.11"
minicbor = "0.19.1"
nix = "0.26"
num-bigint = "0.4"
open-enum = "0.3.0"
openssl = "= 0.10.79"
openssl-sys = "0.9"
p384 = "0.13.0"
parking_lot = "0.12"
pastey = "0.2.1"
pem-rfc7468 = "0.7.0"
pkcs1 = "0.7.5"
pkcs8 = "0.10.2"
pkg-config = "0.3"
proc-macro2 = "1.0.106"
quote = "1.0"
rand = "0.10.1"
sec1 = "=0.8.0-rc.10"
serial_test = "3.5.0"
similar = "2.4"
spki = "0.7.3"
static_cell = "2"
syn = "2"
test-log = "0.2.8"
thiserror = "1.0"
tokio = "1.0.0"
toml_edit = "0.25.11"
tracing = "0.1"
tracing-subscriber = "0.3.16"
tracing-tree = "0.4.1"
trybuild = "1.0.114"
uuid = "1.3.1"
winapi = "0.3"
windows = "0.56"
xshell = "0.2.7"
zerocopy = "0.8.17"
zeroize = "1.8.1"
[workspace.lints.rust]
future_incompatible = { level = "deny", priority = -1 }
nonstandard_style = { level = "deny", priority = -1 }
rust_2018_idioms = { level = "deny", priority = -1 }
# Code that needs unsafe should opt-in via a module-scoped allow.
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
[workspace.lints.clippy]
await_holding_lock = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
filter_map_next = "warn"
fn_params_excessive_bools = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
needless_continue = "warn"
option_option = "warn"
ref_option_ref = "warn"
rest_pat_in_fully_bound_structs = "warn"
suboptimal_flops = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_box_returns = "warn"
unwrap_used = "warn"
# Possible future additions:
#
# useful, but _very_ tedious to fix
# doc_markdown = "warn"
# will be useful to weed-out stubbed codepaths in production
# todo = "warn"
# unimplemented = "warn"
# useful, but will require a follow-up PR to enable
# map_err_ignore = "warn"
# useful, but requires a follow-up PR to enable
# unused_self = "warn"
# Nested if / else if statements can be easier to read than an equivalent
# flattened statements.
collapsible_else_if = "allow"
collapsible_if = "allow"
# There are types where it makes sense to define the length, but it can never
# be empty. This lint is reasonable for container-like data-structures, but
# makes less sense for hardware-backed data structures.
len_without_is_empty = "allow"
# While it's generally a good idea to derive / implement `Default` when
# appropriate, there are many types in the HvLite codebase where a type has a
# `new()` method, but no sensible "Default".
new_without_default = "allow"
# This is the #1 most commonly ignored lint for a reason (at least according
# to [this famous issue](https://github.com/rust-lang/rust-clippy/issues/5418)
# on the clippy GitHub repo)! There are plenty of perfectly reasonable
# functions that require a large number of non-optional arguments,
# particularly when working with low-level hardware APIs.
too_many_arguments = "allow"
# This is a heuristic based lint that isn't always appropriate. While it's
# often a good to decompose complex types into more digestible chunks, there
# are many cases where a one-off complex type is required, and suppressing
# this lint will simply add line-noise.
type_complexity = "allow"
# This lint attempts to simplify usages of if let usage in a loop where only
# one variant type is used. While somewhat useful, its suggestions can lead to
# throwing away potentially useful error information in non-obvious ways.
manual_flatten = "allow"
# This lint warns about comparing boolean values in an `assert_eq!` statement when `assert!`
# could be used instead. While shorter, the explicit comparison can be more obvious to read
# in certain cases than unary operators with `assert!`.
bool_assert_comparison = "allow"
# This lint suggests collapsing Box::new(Foo::default()) into Box::default(). We often
# prefer to specify types completely for local code clarity's sake.
box_default = "allow"
# This lint is purely style, and we are ok with inlined and uninlined format args.
uninlined_format_args = "allow"
# Needed for bitflags 1.x compatibility. Remove when we update to bitflags 2.x
bad_bit_mask = "allow"
# Besides the misleading name (this lint also triggers on arrays), we believe that it
# doesn't provide value. If a developer gets their type wrong they'll notice and fix it.
# Sometimes you do want a list of a single range.
single_range_in_vec_init = "allow"