From 1ef431eceb0031e70f8a5040feec029b7cf60636 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Mon, 24 Apr 2023 09:45:03 +0000 Subject: [PATCH] Cleanup the dependencies as much as possible --- matter/Cargo.toml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/matter/Cargo.toml b/matter/Cargo.toml index 43ee028..8025d83 100644 --- a/matter/Cargo.toml +++ b/matter/Cargo.toml @@ -16,7 +16,7 @@ path = "src/lib.rs" [features] default = ["std", "crypto_mbedtls"] -std = ["alloc"] +std = ["alloc", "env_logger", "chrono", "rand", "qrcode", "smol"] alloc = [] nightly = [] crypto_openssl = ["openssl", "foreign-types", "hmac", "sha2"] @@ -29,27 +29,28 @@ boxslab = { path = "../boxslab" } matter_macro_derive = { path = "../matter_macro_derive" } bitflags = "1.3" byteorder = "1.4.3" -heapless = { version = "0.7.16", features = ["x86-sync-pool"] } -generic-array = "0.14.6" +heapless = "0.7.16" num = "0.4" num-derive = "0.3.3" num-traits = "0.2.15" strum = { version = "0.24", features = ["derive"], default-features = false, no-default-feature = true } log = { version = "0.4.17", features = ["max_level_debug", "release_max_level_debug"] } -env_logger = { version = "0.10.0", default-features = false, features = [] } -rand = "0.8.5" -esp-idf-sys = { version = "0.32", optional = true } subtle = "2.4.1" -colored = "2.0.0" -smol = "1.3.0" -owning_ref = "0.4.1" safemem = "0.3.3" -chrono = { version = "0.4.23", default-features = false, features = ["clock", "std"] } +colored = "2.0.0" # TODO: Requires STD + +# STD-only dependencies +env_logger = { version = "0.10.0", default-features = false, optional = true } +chrono = { version = "0.4.23", optional = true, default-features = false, features = ["clock", "std"] } +rand = { version = "0.8.5", optional = true } +smol = { version = "1.3.0", optional = true} +qrcode = { version = "0.12", default-features = false, optional = true } # Print QR code # crypto openssl = { git = "https://github.com/sfackler/rust-openssl", optional = true } -foreign-types = { version = "0.3.2", optional = true } mbedtls = { git = "https://github.com/fortanix/rust-mbedtls", optional = true } +esp-idf-sys = { version = "0.32", optional = true } +foreign-types = { version = "0.3.2", optional = true } sha2 = { version = "0.10", default-features = false, optional = true } hmac = { version = "0.12", optional = true } pbkdf2 = { version = "0.12", optional = true } @@ -59,21 +60,17 @@ ccm = { version = "0.5", default-features = false, features = ["alloc"], optiona p256 = { version = "0.13.0", default-features = false, features = ["arithmetic", "ecdh", "ecdsa"], optional = true } elliptic-curve = { version = "0.13.2", optional = true } crypto-bigint = { version = "0.4", default-features = false, optional = true } -# Note: requires std +# TODO: requires STD x509-cert = { version = "0.2.0", default-features = false, features = ["pem", "std"], optional = true } # to compute the check digit verhoeff = "1" -# print QR code -qrcode = { version = "0.12", default-features = false } - [target.'cfg(target_os = "macos")'.dependencies] astro-dnssd = "0.3" # MDNS support [target.'cfg(target_os = "linux")'.dependencies] -lazy_static = "1.4.0" libmdns = { version = "0.7.4" } [[example]]