Make sure nix is not brought in no-std compiles
This commit is contained in:
parent
2cde37899d
commit
b94484b67e
1 changed files with 4 additions and 3 deletions
|
@ -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"] }
|
||||
|
|
Loading…
Add table
Reference in a new issue