From 8730335dbacdb7f1d773a4797c32d28eeccbf268 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Tue, 5 Mar 2024 09:25:32 +0100 Subject: [PATCH] fix: Remove unused dependencies (#761) --- Cargo.lock | 100 ------------------ Cargo.toml | 1 - commons/zenoh-codec/Cargo.toml | 1 - commons/zenoh-macros/Cargo.toml | 2 - commons/zenoh-protocol/Cargo.toml | 4 - commons/zenoh-shm/Cargo.toml | 1 - commons/zenoh-sync/Cargo.toml | 1 - commons/zenoh-util/Cargo.toml | 6 -- io/zenoh-link-commons/Cargo.toml | 2 - io/zenoh-links/zenoh-link-serial/Cargo.toml | 1 - io/zenoh-transport/Cargo.toml | 1 - plugins/zenoh-backend-example/Cargo.toml | 2 - plugins/zenoh-plugin-example/Cargo.toml | 1 - .../zenoh-plugin-storage-manager/Cargo.toml | 1 - zenoh/Cargo.toml | 1 - zenohd/Cargo.toml | 1 - 16 files changed, 126 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fa9de7e800..2e33b82584 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1451,12 +1451,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - [[package]] name = "gloo-timers" version = "0.2.6" @@ -1531,12 +1525,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "hkdf" version = "0.10.0" @@ -2287,12 +2275,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "panic-message" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "384e52fd8fbd4cbe3c317e8216260c21a0f9134de108cea8a4dd4e7e152c472d" - [[package]] name = "parking" version = "2.1.0" @@ -2495,20 +2477,6 @@ dependencies = [ "plotters-backend", ] -[[package]] -name = "pnet" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "130c5b738eeda2dc5796fe2671e49027e6935e817ab51b930a36ec9e6a206a64" -dependencies = [ - "ipnetwork", - "pnet_base", - "pnet_datalink", - "pnet_packet", - "pnet_sys", - "pnet_transport", -] - [[package]] name = "pnet_base" version = "0.34.0" @@ -2531,39 +2499,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "pnet_macros" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "688b17499eee04a0408aca0aa5cba5fc86401d7216de8a63fdf7a4c227871804" -dependencies = [ - "proc-macro2", - "quote", - "regex", - "syn 2.0.33", -] - -[[package]] -name = "pnet_macros_support" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eea925b72f4bd37f8eab0f221bbe4c78b63498350c983ffa9dd4bcde7e030f56" -dependencies = [ - "pnet_base", -] - -[[package]] -name = "pnet_packet" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a005825396b7fe7a38a8e288dbc342d5034dac80c15212436424fef8ea90ba" -dependencies = [ - "glob", - "pnet_base", - "pnet_macros", - "pnet_macros_support", -] - [[package]] name = "pnet_sys" version = "0.34.0" @@ -2574,18 +2509,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "pnet_transport" -version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2637e14d7de974ee2f74393afccbc8704f3e54e6eb31488715e72481d1662cc3" -dependencies = [ - "libc", - "pnet_base", - "pnet_packet", - "pnet_sys", -] - [[package]] name = "polling" version = "2.8.0" @@ -4575,7 +4498,6 @@ dependencies = [ "form_urlencoded", "futures", "git-version", - "hex", "lazy_static", "log", "ordered-float", @@ -4615,9 +4537,7 @@ version = "0.11.0-dev" dependencies = [ "async-std", "async-trait", - "clap", "const_format", - "env_logger", "futures", "git-version", "log", @@ -4648,7 +4568,6 @@ dependencies = [ "rand 0.8.5", "serde", "uhlc", - "uuid", "zenoh-buffers", "zenoh-protocol", "zenoh-shm", @@ -4780,9 +4699,7 @@ dependencies = [ "async-trait", "flume", "log", - "lz4_flex", "serde", - "typenum", "zenoh-buffers", "zenoh-codec", "zenoh-core", @@ -4829,7 +4746,6 @@ dependencies = [ "uuid", "z-serial", "zenoh-collections", - "zenoh-config", "zenoh-core", "zenoh-link-commons", "zenoh-protocol", @@ -4958,9 +4874,7 @@ version = "0.11.0-dev" dependencies = [ "proc-macro2", "quote", - "rustc_version 0.4.0", "syn 2.0.33", - "unzip-n", "zenoh-keyexpr", ] @@ -4969,7 +4883,6 @@ name = "zenoh-plugin-example" version = "0.11.0-dev" dependencies = [ "async-std", - "clap", "const_format", "env_logger", "futures", @@ -5018,7 +4931,6 @@ dependencies = [ "async-global-executor", "async-std", "async-trait", - "clap", "const_format", "crc", "derive-new", @@ -5064,12 +4976,10 @@ name = "zenoh-protocol" version = "0.11.0-dev" dependencies = [ "const_format", - "hex", "lazy_static", "rand 0.8.5", "serde", "uhlc", - "uuid", "zenoh-buffers", "zenoh-keyexpr", "zenoh-result", @@ -5086,7 +4996,6 @@ dependencies = [ name = "zenoh-shm" version = "0.11.0-dev" dependencies = [ - "bincode", "log", "serde", "shared_memory", @@ -5100,7 +5009,6 @@ version = "0.11.0-dev" dependencies = [ "async-std", "event-listener 4.0.0", - "flume", "futures", "tokio", "zenoh-buffers", @@ -5120,7 +5028,6 @@ dependencies = [ "flume", "log", "lz4_flex", - "panic-message", "paste", "rand 0.8.5", "ringbuffer-spsc", @@ -5147,23 +5054,17 @@ version = "0.11.0-dev" dependencies = [ "async-std", "async-trait", - "clap", - "const_format", "flume", - "futures", - "hex", "home", "humantime", "lazy_static", "libc", "libloading", "log", - "pnet", "pnet_datalink", "shellexpand", "winapi", "zenoh-core", - "zenoh-protocol", "zenoh-result", ] @@ -5198,7 +5099,6 @@ dependencies = [ "rand 0.8.5", "rustc_version 0.4.0", "zenoh", - "zenoh_backend_traits", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 9af42deeae..32662e5bf7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -148,7 +148,6 @@ tide = "0.16.0" token-cell = { version = "1.4.2", default-features = false } tokio = { version = "1.26.0", default-features = false } # Default features are disabled due to some crates' requirements tokio-tungstenite = "0.20" -typenum = "1.16.0" uhlc = { version = "0.6.0", default-features = false } # Default features are disabled due to usage in no_std crates unzip-n = "0.1.2" url = "2.3.1" diff --git a/commons/zenoh-codec/Cargo.toml b/commons/zenoh-codec/Cargo.toml index 3e103a7b1a..72f507a596 100644 --- a/commons/zenoh-codec/Cargo.toml +++ b/commons/zenoh-codec/Cargo.toml @@ -56,7 +56,6 @@ zenoh-shm = { workspace = true, optional = true } criterion = { workspace = true } env_logger = { workspace = true } rand = { workspace = true, features = ["default"] } -uuid = { workspace = true, features = ["default"] } zenoh-protocol = { workspace = true, features = ["test"] } [[bench]] diff --git a/commons/zenoh-macros/Cargo.toml b/commons/zenoh-macros/Cargo.toml index 245e52f237..7d06482e48 100644 --- a/commons/zenoh-macros/Cargo.toml +++ b/commons/zenoh-macros/Cargo.toml @@ -27,9 +27,7 @@ description = "Internal crate for zenoh." [dependencies] proc-macro2 = { workspace = true } quote = { workspace = true } -rustc_version = { workspace = true } syn = { workspace = true, features = ["full"] } -unzip-n = { workspace = true } zenoh-keyexpr = { workspace = true, features = ["std"] } [lib] diff --git a/commons/zenoh-protocol/Cargo.toml b/commons/zenoh-protocol/Cargo.toml index 07c11cb2fc..93c92ee33f 100644 --- a/commons/zenoh-protocol/Cargo.toml +++ b/commons/zenoh-protocol/Cargo.toml @@ -26,12 +26,10 @@ description = "Internal crate for zenoh." [features] default = ["std"] std = [ - "hex/std", "rand?/std", "rand?/std_rng", "serde/std", "uhlc/std", - "uuid/std", "zenoh-keyexpr/std", "zenoh-result/std", ] @@ -42,11 +40,9 @@ complete_n = [] [dependencies] const_format = { workspace = true } -hex = { workspace = true, features = ["alloc"] } rand = { workspace = true, features = ["alloc", "getrandom"], optional = true } serde = { workspace = true, features = ["alloc"] } uhlc = { workspace = true, default-features = false } -uuid = { workspace = true } # Needs a getrandom::getrandom() custom implementation on embedded (in root crate) zenoh-buffers = { workspace = true, default-features = false } zenoh-keyexpr = { workspace = true } zenoh-result = { workspace = true } diff --git a/commons/zenoh-shm/Cargo.toml b/commons/zenoh-shm/Cargo.toml index dd680fb2fc..ccf23a8911 100644 --- a/commons/zenoh-shm/Cargo.toml +++ b/commons/zenoh-shm/Cargo.toml @@ -29,7 +29,6 @@ description = "Internal crate for zenoh." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bincode = { workspace = true } log = { workspace = true } serde = { workspace = true, features = ["default"] } shared_memory = { workspace = true } diff --git a/commons/zenoh-sync/Cargo.toml b/commons/zenoh-sync/Cargo.toml index 8a1ec9c90f..b660dd371a 100644 --- a/commons/zenoh-sync/Cargo.toml +++ b/commons/zenoh-sync/Cargo.toml @@ -31,7 +31,6 @@ description = "Internal crate for zenoh." [dependencies] async-std = { workspace = true, features = ["default", "unstable"] } event-listener = { workspace = true } -flume = { workspace = true } futures = { workspace = true } tokio = { workspace = true, features = ["default", "sync"] } zenoh-buffers = { workspace = true } diff --git a/commons/zenoh-util/Cargo.toml b/commons/zenoh-util/Cargo.toml index 803645fb8a..256f53d33a 100644 --- a/commons/zenoh-util/Cargo.toml +++ b/commons/zenoh-util/Cargo.toml @@ -38,11 +38,7 @@ default = ["std"] [dependencies] async-std = { workspace = true, features = ["default", "unstable"] } async-trait = { workspace = true } -clap = { workspace = true } -const_format = { workspace = true } flume = { workspace = true } -futures = { workspace = true } -hex = { workspace = true, features = ["default"] } home = { workspace = true } humantime = { workspace = true } lazy_static = { workspace = true } @@ -50,7 +46,6 @@ libloading = { workspace = true } log = { workspace = true } shellexpand = { workspace = true } zenoh-core = { workspace = true } -zenoh-protocol = { workspace = true, features = ["default"] } zenoh-result = { workspace = true, features = ["default"] } [target.'cfg(windows)'.dependencies] @@ -58,7 +53,6 @@ winapi = { workspace = true } [target.'cfg(unix)'.dependencies] libc = { workspace = true } -pnet = { workspace = true } pnet_datalink = { workspace = true } [dev-dependencies] diff --git a/io/zenoh-link-commons/Cargo.toml b/io/zenoh-link-commons/Cargo.toml index 019067de56..29bb0eabfc 100644 --- a/io/zenoh-link-commons/Cargo.toml +++ b/io/zenoh-link-commons/Cargo.toml @@ -32,10 +32,8 @@ async-std = { workspace = true } zenoh-sync = { workspace = true } async-trait = { workspace = true } flume = { workspace = true } -lz4_flex = { workspace = true } log = { workspace = true } serde = { workspace = true, features = ["default"] } -typenum = { workspace = true } zenoh-buffers = { workspace = true } zenoh-codec = { workspace = true } zenoh-core = { workspace = true } diff --git a/io/zenoh-links/zenoh-link-serial/Cargo.toml b/io/zenoh-links/zenoh-link-serial/Cargo.toml index aedf3eb849..a48755e328 100644 --- a/io/zenoh-links/zenoh-link-serial/Cargo.toml +++ b/io/zenoh-links/zenoh-link-serial/Cargo.toml @@ -40,7 +40,6 @@ tokio = { workspace = true, features = ["io-std", "macros", "net", "rt-multi-thr uuid = { workspace = true, default-features = true } z-serial = { workspace = true } zenoh-collections = { workspace = true } -zenoh-config = { workspace = true } zenoh-core = { workspace = true } zenoh-link-commons = { workspace = true } zenoh-protocol = { workspace = true } diff --git a/io/zenoh-transport/Cargo.toml b/io/zenoh-transport/Cargo.toml index 0921f4e1ee..0d9d494606 100644 --- a/io/zenoh-transport/Cargo.toml +++ b/io/zenoh-transport/Cargo.toml @@ -77,5 +77,4 @@ zenoh-util = { workspace = true } [dev-dependencies] env_logger = { workspace = true } -panic-message = { workspace = true } zenoh-protocol = { workspace = true, features = ["test"] } diff --git a/plugins/zenoh-backend-example/Cargo.toml b/plugins/zenoh-backend-example/Cargo.toml index dc6c4ea1ea..f230cc73f1 100644 --- a/plugins/zenoh-backend-example/Cargo.toml +++ b/plugins/zenoh-backend-example/Cargo.toml @@ -30,9 +30,7 @@ crate-type = ["cdylib"] [dependencies] async-std = { workspace = true, features = ["default"] } -clap = { workspace = true } const_format = { workspace = true } -env_logger = { workspace = true } futures = { workspace = true } git-version = { workspace = true } log = { workspace = true } diff --git a/plugins/zenoh-plugin-example/Cargo.toml b/plugins/zenoh-plugin-example/Cargo.toml index 6d49826238..3f65cb9839 100644 --- a/plugins/zenoh-plugin-example/Cargo.toml +++ b/plugins/zenoh-plugin-example/Cargo.toml @@ -36,7 +36,6 @@ crate-type = ["cdylib"] [dependencies] async-std = { workspace = true, features = ["default"] } const_format = { workspace = true } -clap = { workspace = true } env_logger = { workspace = true } futures = { workspace = true } git-version = { workspace = true } diff --git a/plugins/zenoh-plugin-storage-manager/Cargo.toml b/plugins/zenoh-plugin-storage-manager/Cargo.toml index 87215d45eb..afb8b066e8 100644 --- a/plugins/zenoh-plugin-storage-manager/Cargo.toml +++ b/plugins/zenoh-plugin-storage-manager/Cargo.toml @@ -34,7 +34,6 @@ crate-type = ["cdylib", "rlib"] [dependencies] async-std = { workspace = true, features = ["default"] } async-trait = { workspace = true } -clap = { workspace = true } crc = { workspace = true } const_format = { workspace = true } derive-new = { workspace = true } diff --git a/zenoh/Cargo.toml b/zenoh/Cargo.toml index fb929e9893..11ecfad1bf 100644 --- a/zenoh/Cargo.toml +++ b/zenoh/Cargo.toml @@ -74,7 +74,6 @@ flume = { workspace = true } form_urlencoded = { workspace = true } futures = { workspace = true } git-version = { workspace = true } -hex = { workspace = true, features = ["default"] } lazy_static = { workspace = true } log = { workspace = true } ordered-float = { workspace = true } diff --git a/zenohd/Cargo.toml b/zenohd/Cargo.toml index 39f17d5965..892d3df21c 100644 --- a/zenohd/Cargo.toml +++ b/zenohd/Cargo.toml @@ -39,7 +39,6 @@ json5 = { workspace = true } lazy_static = { workspace = true } log = { workspace = true } zenoh = { workspace = true, features = ["unstable"] } -zenoh_backend_traits = { workspace = true } [dev-dependencies] rand = { workspace = true, features = ["default"] }