From 661c6257c8c00f6cda5d1be236141573d7f0d737 Mon Sep 17 00:00:00 2001 From: Frank Bell <60948618+evilrobot-01@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:18:19 +0000 Subject: [PATCH] build(deps): remove unused dependencies (#369) * build(deps): remove unused dependencies * refactor: remove unused import * refactor: silence warning as function will be used in the future * revert: revert removal of tokio-test as used by doc tests --- Cargo.lock | 27 ---------------------- Cargo.toml | 1 - crates/pop-cli/Cargo.toml | 1 - crates/pop-cli/src/cli.rs | 1 + crates/pop-contracts/Cargo.toml | 7 ++---- crates/pop-parachains/Cargo.toml | 5 +--- crates/pop-parachains/src/utils/helpers.rs | 1 - 7 files changed, 4 insertions(+), 39 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac67e52da..48e49894a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3551,15 +3551,6 @@ dependencies = [ "miniz_oxide", ] -[[package]] -name = "float-cmp" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" -dependencies = [ - "num-traits", -] - [[package]] name = "fnv" version = "1.0.7" @@ -6062,12 +6053,6 @@ dependencies = [ "nom", ] -[[package]] -name = "normalize-line-endings" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" - [[package]] name = "nu-ansi-term" version = "0.46.0" @@ -9369,7 +9354,6 @@ dependencies = [ "pop-contracts", "pop-parachains", "pop-telemetry", - "predicates", "reqwest 0.12.9", "serde", "serde_json", @@ -9425,12 +9409,9 @@ dependencies = [ "contract-build", "contract-extrinsics", "contract-transcode", - "dirs", "duct", - "flate2", "heck 0.5.0", "ink_env", - "mockito", "pop-common", "reqwest 0.12.9", "scale-info", @@ -9440,7 +9421,6 @@ dependencies = [ "strum_macros 0.26.4", "subxt", "subxt-signer", - "tar", "tempfile", "thiserror 1.0.69", "tokio", @@ -9456,12 +9436,9 @@ dependencies = [ "askama", "clap", "duct", - "flate2", "glob", "indexmap 2.7.0", - "mockito", "pop-common", - "reqwest 0.12.9", "scale-info", "scale-value", "serde_json", @@ -9471,7 +9448,6 @@ dependencies = [ "subxt", "subxt-signer", "symlink", - "tar", "tempfile", "thiserror 1.0.69", "tokio", @@ -9527,10 +9503,7 @@ checksum = "7e9086cc7640c29a356d1a29fd134380bee9d8f79a17410aa76e7ad295f42c97" dependencies = [ "anstyle", "difflib", - "float-cmp", - "normalize-line-endings", "predicates-core", - "regex", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 44dd1fbd3..8b284b10a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,6 @@ git2 = { version = "0.18", features = ["vendored-openssl"] } glob = "0.3.1" log = "0.4.20" mockito = "1.4.0" -predicates = "3.1.0" tar = "0.4.40" tempfile = "3.10" thiserror = "1.0.58" diff --git a/crates/pop-cli/Cargo.toml b/crates/pop-cli/Cargo.toml index 34e51111d..6093569dc 100644 --- a/crates/pop-cli/Cargo.toml +++ b/crates/pop-cli/Cargo.toml @@ -55,7 +55,6 @@ tower-http = { workspace = true, features = ["fs", "cors"] } [dev-dependencies] assert_cmd.workspace = true contract-extrinsics.workspace = true -predicates.workspace = true subxt.workspace = true subxt-signer.workspace = true sp-weights.workspace = true diff --git a/crates/pop-cli/src/cli.rs b/crates/pop-cli/src/cli.rs index f98c934e9..9d2b86ec7 100644 --- a/crates/pop-cli/src/cli.rs +++ b/crates/pop-cli/src/cli.rs @@ -304,6 +304,7 @@ pub(crate) mod tests { self } + #[allow(dead_code)] pub(crate) fn expect_success(mut self, message: impl Display) -> Self { self.success_expectations.push(message.to_string()); self diff --git a/crates/pop-contracts/Cargo.toml b/crates/pop-contracts/Cargo.toml index f44332299..cd880213c 100644 --- a/crates/pop-contracts/Cargo.toml +++ b/crates/pop-contracts/Cargo.toml @@ -13,9 +13,7 @@ version.workspace = true [dependencies] anyhow.workspace = true duct.workspace = true -flate2.workspace = true reqwest.workspace = true -tar.workspace = true tempfile.workspace = true thiserror.workspace = true tokio.workspace = true @@ -35,10 +33,9 @@ contract-build.workspace = true contract-extrinsics.workspace = true contract-transcode.workspace = true scale-info.workspace = true -# pop +# pop pop-common = { path = "../pop-common", version = "0.5.0" } [dev-dependencies] -dirs.workspace = true -mockito.workspace = true +# Used in doc tests. tokio-test.workspace = true \ No newline at end of file diff --git a/crates/pop-parachains/Cargo.toml b/crates/pop-parachains/Cargo.toml index 89c1df6d9..4b2ee4111 100644 --- a/crates/pop-parachains/Cargo.toml +++ b/crates/pop-parachains/Cargo.toml @@ -12,14 +12,12 @@ version.workspace = true anyhow.workspace = true clap.workspace = true duct.workspace = true -flate2.workspace = true glob.workspace = true serde_json.workspace = true strum.workspace = true strum_macros.workspace = true subxt-signer.workspace = true subxt.workspace = true -tar.workspace = true tempfile.workspace = true thiserror.workspace = true tokio.workspace = true @@ -27,7 +25,6 @@ url.workspace = true askama.workspace = true indexmap.workspace = true -reqwest.workspace = true scale-info.workspace = true scale-value.workspace = true sp-core.workspace = true @@ -41,5 +38,5 @@ zombienet-sdk.workspace = true pop-common = { path = "../pop-common", version = "0.5.0" } [dev-dependencies] -mockito.workspace = true +# Used in doc tests. tokio-test.workspace = true diff --git a/crates/pop-parachains/src/utils/helpers.rs b/crates/pop-parachains/src/utils/helpers.rs index fd8e91d68..f38d7bce5 100644 --- a/crates/pop-parachains/src/utils/helpers.rs +++ b/crates/pop-parachains/src/utils/helpers.rs @@ -88,7 +88,6 @@ mod tests { use super::*; use crate::generator::parachain::ChainSpec; use askama::Template; - use std::env::var; use tempfile::tempdir; #[test]