-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathCargo.toml
More file actions
176 lines (156 loc) · 5.97 KB
/
Copy pathCargo.toml
File metadata and controls
176 lines (156 loc) · 5.97 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
[workspace]
members = [
"aimdb-derive",
"aimdb-data-contracts",
"aimdb-core",
"aimdb-client",
"aimdb-codegen",
"aimdb-embassy-adapter",
"aimdb-tokio-adapter",
"aimdb-sync",
"aimdb-persistence",
"aimdb-persistence-sqlite",
"aimdb-mqtt-connector",
"aimdb-knx-connector",
"aimdb-websocket-connector",
"aimdb-uds-connector",
"aimdb-serial-connector",
"aimdb-tcp-connector",
"aimdb-ws-protocol",
"aimdb-wasm-adapter",
"tools/aimdb-cli",
"tools/aimdb-mcp",
"examples/knx-connector-demo-common",
"examples/mqtt-connector-demo-common",
"examples/tokio-mqtt-connector-demo",
"examples/tokio-knx-connector-demo",
"examples/embassy-mqtt-connector-demo",
"examples/embassy-knx-connector-demo",
"examples/embassy-serial-connector-demo",
"examples/embassy-bench-stm32h5",
"examples/sync-api-demo",
"examples/remote-access-demo",
"examples/weather-mesh-demo/weather-mesh-common",
"examples/weather-mesh-demo/weather-hub",
"examples/weather-mesh-demo/weather-station-alpha",
"examples/weather-mesh-demo/weather-station-beta",
"examples/weather-mesh-demo/weather-station-gamma",
"examples/hello-mailbox",
"examples/hello-mailbox-async",
"examples/hello-single-latest-async",
"examples/readme-quickstart",
# Benchmarking infrastructure — host-only, excluded from default-members
"aimdb-bench",
]
exclude = ["_external"]
resolver = "2"
# Note: build aimdb-core only by default. Use make all to build the full workspace!
default-members = ["aimdb-core"]
[workspace.package]
version = "1.1.0"
edition = "2021"
authors = ["AimDB Team <team@aimdb.dev>"]
license = "Apache-2.0"
repository = "https://github.com/aimdb-dev/aimdb"
homepage = "https://aimdb.dev"
description = "Async in-memory database for data synchronization across MCU → edge → cloud environments"
keywords = ["database", "async", "embedded", "sync", "iot"]
categories = ["database-implementations", "embedded", "asynchronous"]
[workspace.dependencies]
# Core async runtime
tokio = { version = "1.47.1", default-features = false, features = ["macros", "rt-multi-thread"] }
# Serialization (no_std compatible by default)
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
# Error handling
thiserror = "2.0.16"
anyhow = "1.0"
# Serialization - extend with error handling
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
# COBS framing for the serial connector (no_std; self-synchronizing 0x00-delimited
# frames over a lossy/unframed byte medium).
cobs = { version = "0.5.1", default-features = false }
# Serial/UART transport for the tokio half of the serial connector (std only).
tokio-serial = "5.4.5"
# Basic observability
tracing = { version = "0.1", default-features = false }
# Async utilities
futures = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
# CLI (for aimdb-cli)
clap = { version = "4.0", features = ["derive"] }
# Development dependencies
tokio-test = "0.4"
aimdb-tokio-adapter = { path = "./aimdb-tokio-adapter" }
# Embassy ecosystem for embedded async
embassy-stm32 = { version = "0.6.0", path = "./_external/embassy/embassy-stm32", features = [
"defmt",
"stm32h563zi",
"memory-x",
"time-driver-any",
"exti",
"unstable-pac",
"low-power",
] }
embassy-sync = { version = "0.8.0", path = "./_external/embassy/embassy-sync", features = [
"defmt",
] }
embassy-executor = { version = "0.10.0", path = "./_external/embassy/embassy-executor", features = [
"platform-cortex-m",
"executor-thread",
"defmt",
] }
embassy-time = { version = "0.5.1", path = "./_external/embassy/embassy-time", features = [
"defmt",
"defmt-timestamp-uptime",
"tick-hz-32_768",
] }
embassy-net = { version = "0.9.0", path = "./_external/embassy/embassy-net", features = [
"defmt",
"tcp",
"dhcpv4",
"medium-ethernet",
"proto-ipv6",
] }
embassy-usb = { version = "0.6.0", path = "./_external/embassy/embassy-usb", features = ["defmt"] }
embassy-futures = { version = "0.1.2", path = "./_external/embassy/embassy-futures" }
# Embedded HAL for peripheral abstractions
embedded-hal = "0.2.6"
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = "1.0"
embedded-hal-nb = "1.0"
embedded-hal-bus = { version = "0.2", features = ["async"] }
embedded-io = { version = "0.6.0" }
embedded-io-async = { version = "0.7.0" }
embedded-nal-async = "0.8.0"
embedded-storage = "0.3.1"
# Embedded runtime and utilities
cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] }
cortex-m-rt = "0.7.0"
critical-section = "1.1"
static_cell = "2"
# Embedded debugging and logging
defmt = "1.0.1"
defmt-rtt = "1.0.0"
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
# Embedded utilities
heapless = { version = "0.8", default-features = false }
micromath = "2.0.0"
stm32-fmc = "0.3.0"
# Patch mountain-mqtt-embassy's Embassy dependencies to use our local checkout
# This prevents version conflicts between crates.io Embassy and our git submodule
[patch.crates-io]
embassy-executor = { path = "./_external/embassy/embassy-executor" }
embassy-time = { path = "./_external/embassy/embassy-time" }
embassy-sync = { path = "./_external/embassy/embassy-sync" }
embassy-net = { path = "./_external/embassy/embassy-net" }
embassy-futures = { path = "./_external/embassy/embassy-futures" }
# Patch mountain-mqtt to use our fork for Embassy version compatibility
# Required until upstream updates Embassy dependencies to match our workspace
mountain-mqtt = { path = "./_external/mountain-mqtt/mountain-mqtt" }
mountain-mqtt-embassy = { path = "./_external/mountain-mqtt/mountain-mqtt-embassy" }
# Patch knx-pico to use our fork with bug fixes until they're upstreamed
# Required fixes: DPT 9 encoding/decoding, panic prevention, Embassy compat
knx-pico = { path = "./_external/knx-pico" }
[workspace.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]