From 1081ebd2a2954358e1ef3825d15e38d633b075d8 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Wed, 3 Sep 2025 14:07:34 +0000 Subject: [PATCH 1/2] Switch to embassy-time 0.5 --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba4d6d8..0dbf923 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,8 @@ readme = "README.md" rust-version = "1.77" [patch.crates-io] -rs-matter = { git = "https://github.com/project-chip/rs-matter" } -#rs-matter = { git = "https://github.com/sysgrok/rs-matter", branch = "next" } +#rs-matter = { git = "https://github.com/project-chip/rs-matter" } +rs-matter = { git = "https://github.com/sysgrok/rs-matter", branch = "next" } #rs-matter = { path = "../rs-matter/rs-matter" } #edge-nal = { git = "https://github.com/sysgrok/edge-net" } #edge-nal-std = { git = "https://github.com/sysgrok/edge-net" } @@ -171,7 +171,7 @@ bitflags = { version = "2.5", default-features = false } scopeguard = { version = "1", default-features = false } embassy-futures = "0.1" embassy-sync = "0.7" -embassy-time = "0.4" +embassy-time = "0.5" embedded-svc = { version = "0.28", default-features = false } rs-matter = { version = "0.1", default-features = false } edge-nal = "0.5" @@ -189,7 +189,7 @@ static_cell = "2.1" futures-lite = "1" async-compat = "0.2" env_logger = "0.11" -embassy-time-queue-utils = { version = "0.1", features = ["generic-queue-64"] } +embassy-time-queue-utils = { version = "0.3", features = ["generic-queue-64"] } [[example]] name = "light_eth" From 8427d805c4c707b13fcd4ce85e99b43fd6aa115e Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Mon, 13 Oct 2025 21:59:25 +0000 Subject: [PATCH 2/2] Fix the comments --- README.md | 3 +-- examples/light.rs | 3 +-- examples/light_eth.rs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1493720..f97f4d9 100644 --- a/README.md +++ b/README.md @@ -137,8 +137,7 @@ fn main() -> Result<(), Error> { ); // Run the Matter stack with our handler - // Using `pin!` is completely optional, but saves some memory due to `rustc` - // not being very intelligent w.r.t. stack usage in async functions + // Using `pin!` is completely optional, but reduces the size of the final future let store = stack.create_shared_store(DirKvBlobStore::new_default()); let mut matter = pin!(stack.run_preex( // The Matter stack needs UDP sockets to communicate with other Matter devices diff --git a/examples/light.rs b/examples/light.rs index 52e8d1d..161a363 100644 --- a/examples/light.rs +++ b/examples/light.rs @@ -85,8 +85,7 @@ fn main() -> Result<(), Error> { ); // Run the Matter stack with our handler - // Using `pin!` is completely optional, but saves some memory due to `rustc` - // not being very intelligent w.r.t. stack usage in async functions + // Using `pin!` is completely optional, but reduces the size of the final future let store = stack.create_shared_store(DirKvBlobStore::new_default()); let mut matter = pin!(stack.run_coex( PreexistingWireless::new( diff --git a/examples/light_eth.rs b/examples/light_eth.rs index c3465f8..6d7510f 100644 --- a/examples/light_eth.rs +++ b/examples/light_eth.rs @@ -85,8 +85,7 @@ fn main() -> Result<(), Error> { ); // Run the Matter stack with our handler - // Using `pin!` is completely optional, but saves some memory due to `rustc` - // not being very intelligent w.r.t. stack usage in async functions + // Using `pin!` is completely optional, but reduces the size of the final future let store = stack.create_shared_store(DirKvBlobStore::new_default()); let mut matter = pin!(stack.run_preex( // The Matter stack needs UDP sockets to communicate with other Matter devices