diff --git a/firmware/Cargo.lock b/firmware/Cargo.lock index fd5c666..beb104e 100644 --- a/firmware/Cargo.lock +++ b/firmware/Cargo.lock @@ -430,6 +430,7 @@ dependencies = [ "critical-section", "document-features", "embassy-executor-macros", + "log", ] [[package]] @@ -467,6 +468,7 @@ dependencies = [ "futures", "generic-array 0.14.7", "heapless 0.8.0", + "log", "managed", "smoltcp", "stable_deref_trait", @@ -502,6 +504,7 @@ dependencies = [ "embedded-io-async", "futures-util", "heapless 0.8.0", + "log", ] [[package]] @@ -520,6 +523,7 @@ dependencies = [ "embedded-hal-async", "futures-util", "heapless 0.8.0", + "log", ] [[package]] @@ -816,6 +820,7 @@ dependencies = [ "esp-hal", "esp-hal-procmacros", "esp-metadata", + "log", "portable-atomic", "static_cell", ] @@ -1667,6 +1672,7 @@ dependencies = [ "heapless 0.8.0", "hex", "httparse", + "log", "nourl", "rand_chacha", "rand_core", diff --git a/firmware/Cargo.toml b/firmware/Cargo.toml index 6e561a4..e534811 100644 --- a/firmware/Cargo.toml +++ b/firmware/Cargo.toml @@ -69,3 +69,11 @@ rand_core = "0.6" reqwless = { version = "0.12", default-features = false, features = ["alloc", "embedded-tls"] } ssd1306 = { version = "0.9", features = ["async"] } u8g2-fonts = "0.4" + +[features] +default = [] +# Enable additional logging of dependencies +log = [ + "embassy-executor/log", "embassy-net/log", "embassy-sync/log", "embassy-time/log", + "esp-hal/log", "esp-hal-embassy/log", "reqwless/log", +]