2022-12-27 09:32:52 +05:30
[ package ]
name = "matter-iot"
version = "0.1.0"
edition = "2018"
authors = [ "Kedar Sovani <kedars@gmail.com>" ]
description = "Native RUST implementation of the Matter (Smart-Home) ecosystem"
repository = "https://github.com/kedars/matter-rs"
readme = "README.md"
keywords = [ "matter" , "smart" , "smart-home" , "IoT" , "ESP32" ]
categories = [ "embedded" , "network-programming" ]
license = "MIT"
[ lib ]
name = "matter"
path = "src/lib.rs"
[ features ]
2023-05-24 10:07:11 +00:00
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" ]
2023-04-29 19:38:01 +03:00
backtrace = [ ]
2023-04-24 07:20:49 +00:00
alloc = [ ]
2023-02-02 18:22:21 +00:00
nightly = [ ]
2023-05-04 05:42:58 +00:00
crypto_openssl = [ "alloc" , "openssl" , "foreign-types" , "hmac" , "sha2" ]
2023-05-24 10:07:11 +00:00
crypto_mbedtls = [ "alloc" , "mbedtls" ]
2023-05-04 05:42:58 +00:00
crypto_rustcrypto = [ "alloc" , "sha2" , "hmac" , "pbkdf2" , "hkdf" , "aes" , "ccm" , "p256" , "elliptic-curve" , "crypto-bigint" , "x509-cert" , "rand_core" ]
2022-12-27 09:32:52 +05:30
[ dependencies ]
2023-01-15 15:41:58 +01:00
matter_macro_derive = { path = "../matter_macro_derive" }
2023-05-05 16:23:20 +00:00
bitflags = { version = "1.3" , default-features = false }
byteorder = { version = "1.4.3" , default-features = false }
2023-04-24 09:45:03 +00:00
heapless = "0.7.16"
2023-05-05 16:23:20 +00:00
num = { version = "0.4" , default-features = false }
2022-12-27 09:32:52 +05:30
num-derive = "0.3.3"
2023-05-05 16:23:20 +00:00
num-traits = { version = "0.2.15" , default-features = false }
2023-04-29 19:38:01 +03:00
strum = { version = "0.24" , features = [ "derive" ] , default-features = false }
2023-01-15 15:41:58 +01:00
log = { version = "0.4.17" , features = [ "max_level_debug" , "release_max_level_debug" ] }
2023-04-25 07:22:58 +00:00
no-std-net = "0.6"
2023-05-05 16:23:20 +00:00
subtle = { version = "2.4.1" , default-features = false }
safemem = { version = "0.3.3" , default-features = false }
2023-05-04 07:09:59 +00:00
owo-colors = "3"
2023-05-04 10:57:21 +00:00
time = { version = "0.3" , default-features = false }
2023-05-04 09:35:47 +00:00
verhoeff = { version = "1" , default-features = false }
2023-05-24 10:07:11 +00:00
embassy-futures = "0.1"
embassy-time = { version = "0.1.1" , features = [ "generic-queue-8" ] }
embassy-sync = "0.2"
critical-section = "1.1.1"
domain = { version = "0.7.2" , default_features = false }
2023-04-24 09:45:03 +00:00
# STD-only dependencies
rand = { version = "0.8.5" , optional = true }
qrcode = { version = "0.12" , default-features = false , optional = true } # Print QR code
2023-04-24 21:41:16 +00:00
astro-dnssd = { version = "0.3" , optional = true } # On Linux needs avahi-compat-libdns_sd, i.e. on Ubuntu/Debian do `sudo apt-get install libavahi-compat-libdnssd-dev`
2023-05-04 09:35:47 +00:00
smol = { version = "1.2" , optional = true } # =1.2 for compatibility with ESP IDF
async-io = { version = "=1.12" , optional = true } # =1.2 for compatibility with ESP IDF
2022-12-27 09:32:52 +05:30
2023-04-02 13:07:36 +02:00
# crypto
openssl = { git = "https://github.com/sfackler/rust-openssl" , optional = true }
2023-05-05 16:23:20 +00:00
foreign-types = { version = "0.3.2" , optional = true }
2023-05-04 05:42:58 +00:00
# rust-crypto
2023-04-02 13:07:36 +02:00
sha2 = { version = "0.10" , default-features = false , optional = true }
hmac = { version = "0.12" , optional = true }
pbkdf2 = { version = "0.12" , optional = true }
hkdf = { version = "0.12" , optional = true }
aes = { version = "0.8" , optional = true }
ccm = { version = "0.5" , default-features = false , features = [ "alloc" ] , optional = true }
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 }
2023-05-04 05:42:58 +00:00
rand_core = { version = "0.6" , default-features = false , optional = true }
2023-05-04 06:13:36 +00:00
x509-cert = { version = "0.2.0" , default-features = false , features = [ "pem" ] , optional = true } # TODO: requires `alloc`
2023-04-02 13:07:36 +02:00
2023-05-04 09:35:47 +00:00
[ 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 }
[ target . 'cfg(target_os = "espidf")' . dependencies ]
2023-05-24 10:07:11 +00:00
esp-idf-sys = { version = "0.33" , default-features = false , features = [ "native" ] }
2023-01-31 16:39:44 +02:00
[ [ example ] ]
name = "speaker"
path = "../examples/speaker/src/main.rs"