-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
123 lines (100 loc) · 5.41 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
# SPDX-FileCopyrightText: Copyright 2022-2024 EDF (Électricité de France S.A.)
# SPDX-License-Identifier: BSD-3-Clause
# See README for all details on copyright, authorship and license.
[package]
name = "coap-ace-poc-firmware"
version = "0.2.0"
edition = "2021"
authors = [ "Christian Amsüss" ]
license = "BSD-3-Clause"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = [ "hardware-nrf52dk" ]
# Not parametrizing into dependencies yet
hardware-nrf52dk = []
[profile.release]
# to get better output from defmt / probe-run
debug = 2
[dependencies]
heapless = { version = "0.8", features = [ "defmt-03" ] }
# Providing general entry
cortex-m-rt = "0.7.0"
# Debug output
defmt = "0.3"
defmt-rtt = "0.3.2"
panic-probe = { version = "0.3", features= ["print-defmt"] }
# Providing an asynchronous runtime needed for the softdevice
# For integrated-timers see https://github.com/embassy-rs/embassy/issues/1109
# (the alternative is generic-queue on embassy-time)
embassy-executor = { version = "0.6.0", features = [ "defmt", "integrated-timers", "executor-thread", "arch-cortex-m" ]}
# ... and helpers to get the 'static Server we need in the runners
static_cell = "1"
embassy-time = { version = "0.3.0", features = [ "defmt" ] }
embassy-sync = "0.5.0"
fixed = "1"
# For accessing fixed internal (as it doesn't export ToInt)
typenum = "1.15"
# Hardware support
nrf-softdevice = { version = "0.1.0", features = ["defmt", "nrf52832", "s132", "ble-peripheral", "critical-section-impl", "ble-gatt-server", "evt-max-size-512" ] }
# We could pick 112, that would suffice from the required features, but
# building on 132 to ensure we can migrate over.
nrf-softdevice-s132 = "0.1.1"
embassy-nrf = { version = "0.2.0", features = [ "defmt", "nrf52832", "gpiote", "time-driver-rtc1" ]}
# LEDs and buttons, really
nrf52832-hal = "0.15.1"
coap-message = "0.3"
coap-message-implementations = "0.1.6"
coap-message-utils = "0.3.8"
coap-gatt-utils = { git = "https://gitlab.com/oscore/coap-gatt-utils/", branch = "v02" }
coap-handler = "0.2"
# It'd be nice to use ciborium here, but that's not implemented b/c it's not
# easily no_alloc. Anyway, switching over should only be a matter from moving
# the handlers from new_minicbor to new_ciborium if the need arises.
coap-handler-implementations = "0.5"
coap-numbers = "0.2"
# The version coap-handler-implementations caters for
minicbor = "0.24"
# RS
ace-oscore-helpers = { git = "https://gitlab.com/oscore/ace-oscore-helpers/", features = [ "liboscore" ], branch = "v02" }
rand_core = "0.6"
dcaf = { version = "^0.3", default-features = false }
coset = { version = "^0.3", default-features = false }
embedded-alloc = "0.6"
# Needed to introspect ClaimsSet.rest
ciborium = { version = "0.2", default-features = false }
hex-literal = "0.4.1"
#coapcore = { git = "https://github.com/ariel-os/ariel-os", features = [ "defmt" ] }
coapcore = { git = "https://github.com/chrysn-pull-requests/riot-rs", features = [ "defmt" ], rev = "869da50922816377d4ff7fdc2a07c63b47a8e65f" } # in branch "coapcore-time"
lakers = { version = "0.7.2", features = [ "defmt" ] }
lakers-crypto-rustcrypto = "0.7.2"
# Just to enable the features. The unmodified sizes are just a tad too small
# for signed tokens (at least with full X and Y coorinates in them), but the
# full quadrupled sizes lead to crashes in the Softdevcie.
lakers-shared = { version = "0.7.2", features = [ "max_message_size_len_384", "max_kdf_content_len_384", "max_buffer_len_384" ] }
# for rendering the 4.01
windowed-infinity = { version = "0.1.2", features = [ "with_ciborium" ] }
ciborium-ll = { version = "0.2", default-features = false }
# or recently
cbor-macro = "0.1.0"
cboritem = "0.1.2"
[build-dependencies]
serde = "1"
serde_yaml = "0.9.16"
hex = "0.4"
[patch.crates-io]
# These are published, but wisdom on matrix is to not mix them
embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "6d9ed4c0807c977aa6d3c852360d52128f8c459a" }
embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "6d9ed4c0807c977aa6d3c852360d52128f8c459a" }
embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "6d9ed4c0807c977aa6d3c852360d52128f8c459a" }
# None of these are available on crates.io yet
embassy-nrf = { git = "https://github.com/embassy-rs/embassy", rev = "6d9ed4c0807c977aa6d3c852360d52128f8c459a" }
nrf-softdevice = { git = "https://github.com/embassy-rs/nrf-softdevice", rev = "bb1600b728c8acbaecf974741ee5867b472289f3" }
nrf-softdevice-s132 = { git = "https://github.com/embassy-rs/nrf-softdevice", rev = "bb1600b728c8acbaecf974741ee5867b472289f3" }
coset = { git = "https://github.com/chrysn-pull-requests/coset", branch = "oscore" }
dcaf = { git = "https://github.com/chrysn-pull-requests/dcaf-rs", branch = "oscore" }
lakers = { git = "https://github.com/chrysn-pull-requests/edhoc-rs", rev = "7f8e8944602aaa90d89eab459f4124a5e1a9fdec" }# from branch "size-granularity"
lakers-shared = { git = "https://github.com/chrysn-pull-requests/edhoc-rs", rev = "7f8e8944602aaa90d89eab459f4124a5e1a9fdec" }
lakers-crypto-rustcrypto = { git = "https://github.com/chrysn-pull-requests/edhoc-rs", rev = "7f8e8944602aaa90d89eab459f4124a5e1a9fdec" }
# Apply https://github.com/twittner/minicbor/pull/9 for coapcore
minicbor-derive = { git = "https://github.com/chrysn-pull-requests/minicbor", branch = "negativ-indices" }
minicbor = { git = "https://github.com/chrysn-pull-requests/minicbor", branch = "negativ-indices" }