From 78f2282cd44a906c410d60b9de5ee2359f49617d Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Wed, 31 May 2023 12:51:37 +0000 Subject: [PATCH] Make sure nix is not brought in no-std compiles --- matter/Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/matter/Cargo.toml b/matter/Cargo.toml index d1bcced..410b30c 100644 --- a/matter/Cargo.toml +++ b/matter/Cargo.toml @@ -16,8 +16,9 @@ path = "src/lib.rs" [features] default = ["os", "crypto_rustcrypto"] -os = ["std", "backtrace", "critical-section/std", "embassy-sync/std", "embassy-time/std"] -std = ["alloc", "env_logger", "rand", "qrcode", "async-io", "smol", "esp-idf-sys/std"] +#default = ["crypto_rustcrypto"] +os = ["std", "backtrace", "env_logger", "nix", "critical-section/std", "embassy-sync/std", "embassy-time/std"] +std = ["alloc", "rand", "qrcode", "async-io", "smol", "esp-idf-sys/std"] backtrace = [] alloc = [] nightly = [] @@ -74,7 +75,7 @@ x509-cert = { version = "0.2.0", default-features = false, features = ["pem"], o [target.'cfg(not(target_os = "espidf"))'.dependencies] mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", optional = true } env_logger = { version = "0.10.0", optional = true } -nix = { version = "0.26", features = ["net"] } +nix = { version = "0.26", features = ["net"], optional = true } [target.'cfg(target_os = "espidf")'.dependencies] esp-idf-sys = { version = "0.33", default-features = false, features = ["native"] }