Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
818 changes: 389 additions & 429 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ embassy-usb = { version = "0.6.0", features = ["defmt"] }
embassy-futures = { version = "0.1.2" }

# Embedded HAL for peripheral abstractions
embedded-hal = "0.2.6"
embedded-hal = "1.0.0"
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 = { version = "0.7.1" }
embedded-io-async = { version = "0.7.0" }
embedded-nal-async = "0.8.0"
embedded-storage = "0.3.1"
Expand All @@ -166,9 +166,9 @@ defmt-rtt = "1.0.0"
panic-probe = { version = "1.0.0", features = ["print-defmt"] }

# Embedded utilities
heapless = { version = "0.8", default-features = false }
heapless = { version = "0.9.4", default-features = false }
micromath = "2.0.0"
stm32-fmc = "0.3.0"
stm32-fmc = "0.4.0"

# The adapter needs `poll_next_message` / `poll_changed` — merged upstream, not
# in embassy-sync 0.8.0. Patches aren't published, so this blocks publishing
Expand Down
2 changes: 1 addition & 1 deletion aimdb-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ aimdb-data-contracts = { path = "../aimdb-data-contracts", default-features = fa
# F13) references `criterion::Criterion` in its public signature, so this
# must be a regular (if optional/std-gated) dependency, not a dev-dependency:
# dev-dependencies aren't visible to the library's own compilation.
criterion = { version = "0.5", default-features = false, features = [
criterion = { version = "0.8", default-features = false, features = [
"cargo_bench_support",
], optional = true }

Expand Down
4 changes: 2 additions & 2 deletions aimdb-build-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ links = "aimdb-build-info"

[dependencies]
serde_json = { workspace = true, optional = true, features = ["std"] }
sha2 = { version = "0.10", optional = true }
sha2 = { version = "0.11", optional = true }

[dev-dependencies]
tempfile = "3"
# Finds the section in the host-link tests' binaries.
object = { version = "0.36", default-features = false, features = ["read", "std"] }
object = { version = "0.41", default-features = false, features = ["read", "std"] }

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion aimdb-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ aimdb-tokio-adapter = { version = "0.8.0", path = "../aimdb-tokio-adapter" }

# Error handling
anyhow = "1"
thiserror = "1"
thiserror = "2"

[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "test-util"] }
Expand Down
4 changes: 2 additions & 2 deletions aimdb-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ defmt = { workspace = true, optional = true }
log = { workspace = true, optional = true }

# Synchronization primitives for no_std
spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"] }
spin = { version = "0.10", default-features = false, features = ["mutex", "spin_mutex"] }

# Hash map for no_std (same implementation as std::collections::HashMap)
hashbrown = { version = "0.15", default-features = false, features = ["default-hasher"] }
hashbrown = { version = "0.17", default-features = false, features = ["default-hasher"] }

[dev-dependencies]
# Scoped subscribers in logging tests require std independently of other crates.
Expand Down
2 changes: 1 addition & 1 deletion aimdb-data-contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ aimdb-core = { version = "3.0.0", path = "../aimdb-core", optional = true, defau
] }
# `lock` only: tracing the wire shape, its hash, and reading `aimdb.lock`.
serde-reflection = { version = "0.6", optional = true }
sha2 = { version = "0.10", optional = true }
sha2 = { version = "0.11", optional = true }
toml = { version = "1", optional = true, default-features = false, features = ["std", "serde", "parse"] }
# RNG is caller-supplied, so we need only the `Rng`/`RngExt` traits and the
# always-available `SmallRng` — no `std_rng`.
Expand Down
2 changes: 1 addition & 1 deletion aimdb-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ categories = ["development-tools::procedural-macro-helpers"]
proc-macro = true

[dependencies]
syn = { version = "2.0", features = ["full", "parsing", "derive"] }
syn = { version = "3.0", features = ["full", "parsing", "derive"] }
quote = "1.0"
proc-macro2 = "1.0"
5 changes: 5 additions & 0 deletions aimdb-knx-connector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
//!
//! ## Tokio Usage (Standard Library)
//!
//! Requires the `connector` feature.
//!
//! ```no_run
//! # #[cfg(feature = "connector")]
//! # mod example {
//! use aimdb_core::buffer::BufferCfg;
//! use aimdb_core::AimDbBuilder;
//! use aimdb_knx_connector::KnxConnector;
Expand Down Expand Up @@ -87,6 +91,7 @@
//! let (db, runner) = builder.build().await?;
//! # Ok(())
//! # }
//! # }
//! ```
//!
//! ## Embassy Usage (Embedded)
Expand Down
12 changes: 6 additions & 6 deletions aimdb-knx-connector/src/tunnel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct PendingAck {
struct ChannelState {
channel_id: u8,
outbound_seq: u8,
pending_acks: heapless::FnvIndexMap<u8, PendingAck, PENDING_ACK_CAPACITY>,
pending_acks: heapless::index_map::FnvIndexMap<u8, PendingAck, PENDING_ACK_CAPACITY>,
next_heartbeat: Millis,
/// Set when a CONNECTIONSTATE_REQUEST goes out; cleared by the gateway's
/// OK response. A pending entry older than
Expand All @@ -205,7 +205,7 @@ impl ChannelState {
Self {
channel_id,
outbound_seq: 0,
pending_acks: heapless::FnvIndexMap::new(),
pending_acks: heapless::index_map::FnvIndexMap::new(),
next_heartbeat: now + cfg.heartbeat_ms,
heartbeat_pending_since: None,
next_ack_sweep: now + cfg.ack_sweep_ms,
Expand Down Expand Up @@ -305,7 +305,7 @@ impl TunnelEngine {
return;
};
// Unexpected (untracked) ACKs are ignored.
let _ = state.pending_acks.remove(&seq);
let _ = state.pending_acks.swap_remove(&seq);
}
ServiceType::TunnellingRequest => {
// A parseable connection header is required before
Expand Down Expand Up @@ -377,7 +377,7 @@ impl TunnelEngine {
// is ever silently untracked. Eviction is overflow, not confirmed
// loss, so it never tears the connection down.
if let Some((&oldest, _)) = state.pending_acks.iter().next() {
state.pending_acks.remove(&oldest);
state.pending_acks.swap_remove(&oldest);
self.actions.push_back(Action::AckTimeout { seq: oldest });
}
let _ = state.pending_acks.insert(seq, pending);
Expand All @@ -394,7 +394,7 @@ impl TunnelEngine {
/// misreport the local send failure as a gateway ACK loss.
fn send_failed(&mut self, seq: u8) {
if let Phase::Connected(state) = &mut self.phase {
let _ = state.pending_acks.remove(&seq);
let _ = state.pending_acks.swap_remove(&seq);
}
}

Expand Down Expand Up @@ -478,7 +478,7 @@ impl TunnelEngine {
await_ack: Some(*seq),
});
} else {
state.pending_acks.remove(seq);
state.pending_acks.swap_remove(seq);
self.actions.push_back(Action::AckTimeout { seq: *seq });
// Spec: tear the connection down once the repeat
// also went unanswered, so queued commands stop
Expand Down
7 changes: 4 additions & 3 deletions aimdb-mqtt-connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ rustls-native-certs = { version = "0.8", optional = true }
embassy-time = { version = "0.5.1", optional = true }
embassy-sync = { version = "0.8.0", optional = true }
embassy-futures = { workspace = true, optional = true }
heapless = { workspace = true, optional = true }
heapless = { version = "0.8", default-features = false, optional = true }
# Byte ring the embedded session encodes outbound packets into. `AtomicCoord`
# needs atomic CAS, which every supported embedded target has.
bbqueue = { version = "0.7", default-features = false, features = ["alloc"], optional = true }
Expand Down Expand Up @@ -191,11 +191,12 @@ critical-section = { version = "1.1", optional = true }
[dev-dependencies]
embedded-io-async = { workspace = true }
# The `mqtts://` host smoke: a self-signed certificate and a real TLS server.
# embedded-tls 0.19 requires RNGs implementing rand_core 0.6.
rand = "0.8"
rcgen = "0.13"
rcgen = "0.14"
tokio-rustls = "0.26"
tokio = { workspace = true, features = ["full"] }
heapless = { workspace = true }
heapless = { version = "0.8", default-features = false }
futures = "0.3"
embassy-time-driver = "0.2.2"
# The loopback harness must supply the defmt symbols smoltcp references.
Expand Down
2 changes: 1 addition & 1 deletion aimdb-mqtt-connector/tests/tls_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn self_signed() -> (
let cert = rcgen::generate_simple_self_signed(vec![BROKER_HOST.to_string()])
.expect("generate self-signed certificate");
let der = cert.cert.der().to_vec();
let key = PrivateKeyDer::try_from(cert.key_pair.serialize_der()).expect("server key");
let key = PrivateKeyDer::try_from(cert.signing_key.serialize_der()).expect("server key");
// `&'static` because `TlsOptions` holds the trust root for the session's
// whole life; one leak per test process.
let ca: &'static [u8] = Box::leak(der.clone().into_boxed_slice());
Expand Down
2 changes: 1 addition & 1 deletion aimdb-mqtt-connector/tests/tls_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn self_signed() -> (
let cert = rcgen::generate_simple_self_signed(vec![BROKER_HOST.to_string()])
.expect("generate self-signed certificate");
let der = cert.cert.der().to_vec();
let key = PrivateKeyDer::try_from(cert.key_pair.serialize_der()).expect("server key");
let key = PrivateKeyDer::try_from(cert.signing_key.serialize_der()).expect("server key");
let ca: &'static [u8] = Box::leak(der.clone().into_boxed_slice());
(CertificateDer::from(der), key, ca)
}
Expand Down
2 changes: 1 addition & 1 deletion aimdb-persistence-sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ log = ["aimdb-core/log"]
[dependencies]
aimdb-core = { version = "3.0.0", path = "../aimdb-core", default-features = false, features = ["alloc"] }
aimdb-persistence = { version = "0.3.0", path = "../aimdb-persistence" }
rusqlite = { version = "0.41", features = ["bundled"] }
rusqlite = { version = "0.42", features = ["bundled"] }
serde_json = { workspace = true, features = ["std"] }
tokio = { workspace = true, features = ["sync"] }

Expand Down
6 changes: 3 additions & 3 deletions aimdb-websocket-connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ tokio = { version = "1", features = [

# WebSocket server
axum = { version = "0.8", features = ["ws"], optional = true }
tower-http = { version = "0.6", features = ["cors"], optional = true }
tower-http = { version = "0.7", features = ["cors"], optional = true }

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# WebSocket client
tokio-tungstenite = { version = "0.26", optional = true }
tokio-tungstenite = { version = "0.29", optional = true }

# Utilities
dashmap = { version = "6", optional = true }
Expand All @@ -70,7 +70,7 @@ tracing = { version = "0.1", optional = true }

[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }
tokio-tungstenite = "0.26"
tokio-tungstenite = "0.29"
aimdb-tokio-adapter = { path = "../aimdb-tokio-adapter" }
# `tests/inline_envelope_refused.rs`: a versioned contract on a `ws-client://` link.
aimdb-data-contracts = { path = "../aimdb-data-contracts", features = ["linkable-json", "migratable"] }
Expand Down
14 changes: 14 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ confidence-threshold = 0.8
[bans]
multiple-versions = "warn"
wildcards = "allow"
deny = [{ name = "heapless", version = ">=0.9.0, <0.9.4", reason = "Keep the 0.8 advisory exceptions from masking vulnerable 0.9 releases" }]

[advisories]
version = 2
Expand All @@ -33,6 +34,19 @@ ignore = [
"RUSTSEC-2024-0449", # unsafe-libyaml unmaintained, via serde_yaml from zenoh-config (zenoh connector never parses YAML config) and aimdb-cli's optional yaml feature
"RUSTSEC-2026-0041", # lz4_flex decompression, via zenoh-transport: compiled only with transport_compression, which the zenoh connector never enables (see .cargo/audit.toml)
"RUSTSEC-2026-0441", # pin-utils unmaintained, via hyper 1.8.1 (axum, reqwest); no safe upgrade, hyper itself depends on it
"RUSTSEC-2026-0543", # chrono unmaintained, no safe upgrade; via embassy-stm32 (embedded examples) and aimdb-cli/aimdb-mcp
"RUSTSEC-2026-0542", # humantime unmaintained (follows chrono), no safe upgrade; via uhlc from zenoh (zenoh connector)
# TEMP: heapless 0.8 unsound advisories, fixed only in >=0.9.4 (our 0.9 graph is on 0.9.4).
# 0.8 stays until aimdb-mountain-mqtt (heapless ^0.8 in its public API) is republished on 0.9.
"RUSTSEC-2026-0574", # FindMutView::pop use after free
"RUSTSEC-2026-0575", # Spsc::peek Relaxed ordering
"RUSTSEC-2026-0576", # IndexMap::truncate inconsistent state
"RUSTSEC-2026-0577", # panicking Drop
"RUSTSEC-2026-0578", # SortedLinkedList::zeroize inconsistent state
"RUSTSEC-2026-0579", # Deque TryFrom when full
"RUSTSEC-2026-0580", # treiber stack race
"RUSTSEC-2026-0581", # Deque::make_contiguous broken invariants
"RUSTSEC-2026-0582", # IndexMap::insert at u16::MAX elements
]

[sources]
Expand Down
2 changes: 1 addition & 1 deletion examples/embassy-bench-stm32h5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ cortex-m-rt = { workspace = true }
critical-section = { workspace = true }

# Counting allocator wraps this heap to validate 0 allocs/msg on real hardware.
embedded-alloc = { version = "0.6", features = ["llff"] }
embedded-alloc = { version = "0.7", features = ["llff"] }

[package.metadata.embassy]
build = [
Expand Down
2 changes: 1 addition & 1 deletion examples/embassy-knx-connector-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ embedded-storage = { workspace = true }
heapless = { workspace = true }
micromath = { workspace = true }
stm32-fmc = { workspace = true }
embedded-alloc = { version = "0.6", features = ["llff"] }
embedded-alloc = { version = "0.7", features = ["llff"] }

# RNG for unique client IDs
rand = { version = "0.10.1", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions examples/embassy-mqtt-connector-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ embedded-io-async = { workspace = true }
embedded-storage = { workspace = true }

# Embedded utilities
heapless = { workspace = true }
heapless = { version = "0.8", default-features = false }
micromath = { workspace = true }
stm32-fmc = { workspace = true }
embedded-alloc = { version = "0.6", features = ["llff"] }
embedded-alloc = { version = "0.7", features = ["llff"] }

# RNG for unique client IDs
rand = { version = "0.10.1", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion examples/embassy-serial-connector-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static_cell = { workspace = true }

# Embedded HAL / heap
embedded-io-async = { workspace = true }
embedded-alloc = { version = "0.6", features = ["llff"] }
embedded-alloc = { version = "0.7", features = ["llff"] }

[build-dependencies]
aimdb-build-info = { path = "../../aimdb-build-info", features = ["build"] }
Expand Down
4 changes: 2 additions & 2 deletions tools/aimdb-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ tokio = { version = "1", features = [

# Error handling
anyhow = "1"
thiserror = "1"
thiserror = "2"

# Output formatting
tabled = "0.20"
tabled = "0.22"
colored = "3"
chrono = "0.4"

Expand Down
2 changes: 1 addition & 1 deletion tools/aimdb-mcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ clap = { version = "4", features = ["derive"] }

# Error handling
anyhow = "1.0"
thiserror = "1.0"
thiserror = "2.0"

# Logging
tracing = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion tools/check-no-globals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ license.workspace = true
publish = false

[dependencies]
syn = { version = "2.0", features = ["full", "visit"] }
syn = { version = "3.0", features = ["full", "visit"] }
quote = "1.0"
proc-macro2 = { version = "1.0", features = ["span-locations"] }