Skip to content

Commit

Permalink
fix build under ESP IDF
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Jun 2, 2024
1 parent 76d880a commit aefb3ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ rs-matter-macros = "0.1"
edge-nal = "0.2"
edge-nal-std = { version = "0.2", optional = true }

[target.'cfg(unix)'.dependencies]
[target.'cfg(all(unix, not(target_os = "espidf")))'.dependencies]
nix = { version = "0.27", features = ["net"] }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/netif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use core::net::{Ipv4Addr, Ipv6Addr};
use edge_nal::UdpBind;
use rs_matter::error::Error;

#[cfg(all(unix, feature = "std"))]
#[cfg(all(unix, feature = "std", not(target_os = "espidf")))]
pub use unix::UnixNetif;

/// Async trait for accessing the network interface (netif) of a driver.
Expand Down Expand Up @@ -147,7 +147,7 @@ where
}
}

//#[cfg(all(unix, feature = "std"))]
#[cfg(all(unix, feature = "std", not(target_os = "espidf")))]
mod unix {
use alloc::string::String;

Expand Down

0 comments on commit aefb3ae

Please sign in to comment.