From c7e997a8d8b966771dc561bf02abeaf8532fc5d9 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 20 Mar 2025 11:25:06 +0800 Subject: [PATCH] embassy-net: Add std and alloc features These are passed through to smoltcp, which otherwise won't handle some match cases when managed/std feature is enabled externally. --> .../index.crates.io-1949cf8c6b5b557f/smoltcp-0.12.0/src/iface/socket_set.rs:82:15 | 82 | match &mut self.sockets { | ^^^^^^^^^^^^^^^^^ pattern `&mut ManagedSlice::Owned(_)` not covered --- embassy-net/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 1e513a9ea..c3bf1acbc 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml @@ -61,6 +61,10 @@ medium-ip = ["smoltcp/medium-ip"] medium-ieee802154 = ["smoltcp/medium-ieee802154"] ## Enable multicast support (for both ipv4 and/or ipv6 if enabled) multicast = ["smoltcp/multicast"] +## Enable smoltcp std feature (necessary if using "managed" crate std feature) +std = ["smoltcp/std"] +## Enable smoltcp alloc feature (necessary if using "managed" crate alloc feature) +alloc = ["smoltcp/alloc"] [dependencies]