Make sure nix is not brought in no-std compiles
This commit is contained in:
parent
526e592a5c
commit
78f2282cd4
1 changed files with 4 additions and 3 deletions
|
@ -16,8 +16,9 @@ path = "src/lib.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["os", "crypto_rustcrypto"]
|
default = ["os", "crypto_rustcrypto"]
|
||||||
os = ["std", "backtrace", "critical-section/std", "embassy-sync/std", "embassy-time/std"]
|
#default = ["crypto_rustcrypto"]
|
||||||
std = ["alloc", "env_logger", "rand", "qrcode", "async-io", "smol", "esp-idf-sys/std"]
|
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 = []
|
backtrace = []
|
||||||
alloc = []
|
alloc = []
|
||||||
nightly = []
|
nightly = []
|
||||||
|
@ -74,7 +75,7 @@ x509-cert = { version = "0.2.0", default-features = false, features = ["pem"], o
|
||||||
[target.'cfg(not(target_os = "espidf"))'.dependencies]
|
[target.'cfg(not(target_os = "espidf"))'.dependencies]
|
||||||
mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", optional = true }
|
mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", optional = true }
|
||||||
env_logger = { version = "0.10.0", 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]
|
[target.'cfg(target_os = "espidf")'.dependencies]
|
||||||
esp-idf-sys = { version = "0.33", default-features = false, features = ["native"] }
|
esp-idf-sys = { version = "0.33", default-features = false, features = ["native"] }
|
||||||
|
|
Loading…
Add table
Reference in a new issue