From d3dd5ef0f9c985a4e7044ff0580d9b7b93996397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Sun, 16 Jun 2024 00:45:25 +0100 Subject: [PATCH] chore: prune unused dependencies --- Cargo.lock | 81 ++++-------------------------------------------------- Cargo.toml | 3 -- 2 files changed, 6 insertions(+), 78 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a3c1e88..b99f3d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,15 +23,6 @@ version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" -[[package]] -name = "atomic-polyfill" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cf2bce30dfe09ef0bfaef228b9d414faaf7e563035494d7fe092dba54b300f4" -dependencies = [ - "critical-section", -] - [[package]] name = "atomic-waker" version = "1.1.2" @@ -232,7 +223,7 @@ dependencies = [ "embedded-hal 1.0.0", "embedded-hal-async", "futures-util", - "heapless 0.8.0", + "heapless", ] [[package]] @@ -309,20 +300,6 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" -[[package]] -name = "embedded-svc" -version = "0.26.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55feac55fb81e14c747d5475f05ead553855a133a36f979fa4e7883a240ee829" -dependencies = [ - "atomic-waker", - "embedded-io", - "enumset", - "heapless 0.7.17", - "no-std-net 0.5.0", - "serde", -] - [[package]] name = "enum-as-inner" version = "0.4.0" @@ -541,11 +518,11 @@ dependencies = [ "esp-wifi-sys", "fugit", "futures-util", - "heapless 0.8.0", + "heapless", "libm", "linked_list_allocator", "log", - "no-std-net 0.6.0", + "no-std-net", "num-derive", "num-traits", "portable-atomic", @@ -632,15 +609,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d758ba1b47b00caf47f24925c0074ecb20d6dfcffe7f6d53395c0465674841a" -[[package]] -name = "hash32" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" -dependencies = [ - "byteorder", -] - [[package]] name = "hash32" version = "0.3.1" @@ -656,26 +624,13 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -[[package]] -name = "heapless" -version = "0.7.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdc6457c0eb62c71aac4bc17216026d8410337c4126773b9c5daba343f17964f" -dependencies = [ - "atomic-polyfill", - "hash32 0.2.1", - "rustc_version", - "spin", - "stable_deref_trait", -] - [[package]] name = "heapless" version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bfb9eb618601c89945a70e254898da93b13be0388091d42117462b265bb3fad" dependencies = [ - "hash32 0.3.1", + "hash32", "portable-atomic", "stable_deref_trait", ] @@ -802,12 +757,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d5439c4ad607c3c23abf66de8c8bf57ba8adcd1f129e699851a6e43935d339d" -[[package]] -name = "no-std-net" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bcece43b12349917e096cddfa66107277f123e6c96a5aea78711dc601a47152" - [[package]] name = "no-std-net" version = "0.6.0" @@ -869,8 +818,6 @@ version = "0.1.0" dependencies = [ "embassy-executor", "embassy-time", - "embedded-io", - "embedded-svc", "esp-alloc", "esp-backtrace", "esp-hal", @@ -878,7 +825,6 @@ dependencies = [ "esp-hal-smartled", "esp-println", "esp-wifi", - "heapless 0.8.0", "log", "smart-leds", "smoltcp", @@ -1039,15 +985,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - [[package]] name = "rustversion" version = "1.0.17" @@ -1077,12 +1014,6 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7f8592b424e48e4d0d59faf9fb126077542b3f5ceb0fa6468229619d98743df" -[[package]] -name = "semver" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" - [[package]] name = "serde" version = "1.0.203" @@ -1139,7 +1070,7 @@ dependencies = [ "bitflags 1.3.2", "byteorder", "cfg-if", - "heapless 0.8.0", + "heapless", "managed", ] @@ -1323,7 +1254,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98816b1accafbb09085168b90f27e93d790b4bfa19d883466b5e53315b5f06a6" dependencies = [ - "heapless 0.8.0", + "heapless", "portable-atomic", ] diff --git a/Cargo.toml b/Cargo.toml index 5e252e8..a0c486a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,15 +16,12 @@ esp-hal = { version = "0.18.0", features = ["esp32s3"] } esp-println = { version = "0.9.1", features = ["esp32s3", "log"] } log = { version = "0.4.21" } esp-alloc = { version = "0.4.0" } -embedded-svc = { version = "0.26.1", default-features = false, features = [] } -embedded-io = "0.6.1" esp-wifi = { version = "0.6.0", features = [ "esp32s3", "phy-enable-usb", "utils", "wifi", ] } -heapless = { version = "0.8.0", default-features = false } smoltcp = { version = "0.11.0", default-features = false, features = [ "medium-ethernet", "proto-dhcpv4",