Skip to content

Commit

Permalink
build: CRP-2375 remove various unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fspreiss committed Jan 30, 2024
1 parent e67b9b4 commit ef23f44
Show file tree
Hide file tree
Showing 105 changed files with 3 additions and 493 deletions.
163 changes: 0 additions & 163 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions rs/artifact_manager/BUILD.bazel
Expand Up @@ -3,17 +3,11 @@ load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
"//rs/constants",
"//rs/interfaces",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"//rs/types/types",
"@crate_index//:bincode",
"@crate_index//:crossbeam-channel",
"@crate_index//:prometheus",
"@crate_index//:serde",
"@crate_index//:serde_json",
"@crate_index//:slog",
]

MACRO_DEPENDENCIES = []
Expand Down
6 changes: 0 additions & 6 deletions rs/artifact_manager/Cargo.toml
Expand Up @@ -7,17 +7,11 @@ description.workspace = true
documentation.workspace = true

[dependencies]
bincode = "1.2.1"
ic-constants = { path = "../constants" }
ic-interfaces = { path = "../interfaces" }
ic-logger = { path = "../monitoring/logger" }
ic-metrics = { path = "../monitoring/metrics" }
ic-types = { path = "../types/types" }
crossbeam-channel = "0.5.5"
slog = { workspace = true }
prometheus = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

[dev-dependencies]
ic-config = { path = "../config" }
Expand Down
2 changes: 0 additions & 2 deletions rs/async_utils/Cargo.toml
Expand Up @@ -14,11 +14,9 @@ derive_more = { git = "https://github.com/dfinity-lab/derive_more", rev = "9f1b8
futures = { workspace = true }
futures-util = "0.3.13"
hyper = { version = "0.14.16", features = ["full"] }
ic-types = { path = "../types/types" }
slog = { workspace = true }
tokio = { workspace = true }
tonic = { workspace = true }
tower = { workspace = true }

[dev-dependencies]
rand = "0.8.3"
5 changes: 0 additions & 5 deletions rs/boundary_node/discower_bowndary/BUILD.bazel
Expand Up @@ -6,12 +6,7 @@ DEPENDENCIES = [
"//rs/protobuf",
"//rs/registry/client",
"//rs/registry/nns_data_provider_wrappers",
"@crate_index//:ic-agent",
"@crate_index//:futures-util",
"@crate_index//:prost",
"@crate_index//:reqwest",
"@crate_index//:serde",
"@crate_index//:serde_json",
"@crate_index//:thiserror",
"@crate_index//:tokio",
"@crate_index//:url",
Expand Down
5 changes: 0 additions & 5 deletions rs/boundary_node/discower_bowndary/Cargo.toml
Expand Up @@ -5,14 +5,9 @@ edition = "2021"

[dependencies]
async-trait = "0.1.73"
ic-agent = { workspace = true }
prost = { workspace = true }
tokio = { workspace = true }
url = "2.4.0"
serde = { workspace = true }
serde_json = { workspace = true }
futures-util = "0.3.28"
reqwest = { workspace = true }
thiserror = "1.0.50"
ic-protobuf = { path = "../../protobuf" }
ic-registry-client = { path = "../../registry/client" }
Expand Down
1 change: 0 additions & 1 deletion rs/boundary_node/ic_boundary/BUILD.bazel
Expand Up @@ -3,7 +3,6 @@ load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test")
package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
"//packages/icrc-ledger-types:icrc_ledger_types",
"//rs/certification/test-utils",
"//rs/config",
"//rs/crypto/internal/crypto_lib/basic_sig/ed25519",
Expand Down
1 change: 0 additions & 1 deletion rs/boundary_node/ic_boundary/Cargo.toml
Expand Up @@ -58,7 +58,6 @@ ic-registry-subnet-type = { path = "../../registry/subnet_type" }
ic-test-utilities = { path = "../../test_utilities" }
ic-test-utilities-registry = { path = "../../test_utilities/registry" }
ic-types = { path = "../../types/types" }
icrc-ledger-types = { path = "../../../packages/icrc-ledger-types" }
ic-ic00-types = { path = "../../types/ic00_types" }
instant-acme = "0.3.2"
jemallocator = "0.3"
Expand Down
8 changes: 0 additions & 8 deletions rs/boundary_node/icx_proxy/BUILD.bazel
Expand Up @@ -5,15 +5,11 @@ package(default_visibility = ["//visibility:public"])
DEPENDENCIES = [
"@crate_index//:anyhow",
"@crate_index//:axum",
"@crate_index//:base64",
"@crate_index//:bytes",
"@crate_index//:candid",
"@crate_index//:clap_4_0_0",
"@crate_index//:flate2",
"@crate_index//:form_urlencoded",
"@crate_index//:futures",
"@crate_index//:h2",
"@crate_index//:hex",
"@crate_index//:http",
"@crate_index//:http-body",
"@crate_index//:hyper",
Expand All @@ -33,10 +29,6 @@ DEPENDENCIES = [
"@crate_index//:tower-http",
"@crate_index//:tracing",
"@crate_index//:tracing-subscriber",
"@crate_index//:serde",
"@crate_index//:serde_cbor",
"@crate_index//:serde_json",
"@crate_index//:sha2",
"@crate_index//:tokio",
"@crate_index//:ic-response-verification",
"@crate_index//:ic-http-certification",
Expand Down
8 changes: 0 additions & 8 deletions rs/boundary_node/icx_proxy/Cargo.toml
Expand Up @@ -20,15 +20,11 @@ path = "src/main.rs"
anyhow = "1"
async-trait = "0.1"
axum = "0.6.1"
base64 = { workspace = true }
bytes = { workspace = true }
candid = { workspace = true }
clap = { version = "4", features = ["cargo", "derive"] }
flate2 = "1"
form_urlencoded = "1"
futures = { workspace = true }
h2 = "0.3.24"
hex = "0.4"
http = "0.2.6"
http-body = "0.4"
hyper = { version = "0.14.26", features = ["client", "http2", "http1"] }
Expand All @@ -48,10 +44,6 @@ tower = { workspace = true }
tower-http = { version = "0.3", features = ["trace"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json"] }
serde = { workspace = true }
serde_cbor = { workspace = true }
serde_json = { workspace = true }
sha2 = "0.10"
tokio = { workspace = true }
ic-response-verification = { workspace = true }
ic-http-certification = { workspace = true }
Expand Down
6 changes: 1 addition & 5 deletions rs/canister_client/BUILD.bazel
Expand Up @@ -22,7 +22,6 @@ DEPENDENCIES = [
"//rs/certification",
"//rs/crypto/ecdsa_secp256k1",
"//rs/crypto/tree_hash",
"//rs/crypto/utils/threshold_sig_der",
"//rs/protobuf",
"//rs/tree_deserializer",
"//rs/types/ic00_types",
Expand All @@ -35,15 +34,12 @@ DEPENDENCIES = [
"@crate_index//:prost",
"@crate_index//:rustls",
"@crate_index//:serde",
"@crate_index//:serde_bytes",
"@crate_index//:serde_cbor",
"@crate_index//:tokio",
"@crate_index//:url",
]

MACRO_DEPENDENCIES = [
"@crate_index//:async-trait",
]
MACRO_DEPENDENCIES = []

DEV_DEPENDENCIES = [
"//rs/certification/test-utils",
Expand Down
3 changes: 0 additions & 3 deletions rs/canister_client/Cargo.toml
Expand Up @@ -13,19 +13,16 @@ ic-canister-client-sender = { path = "./sender" }
ic-canonical-state = { path = "../canonical_state" }
ic-certification = { path = "../certification" }
ic-crypto-tree-hash = { path = "../crypto/tree_hash" }
ic-crypto-utils-threshold-sig-der = { path = "../crypto/utils/threshold_sig_der" }
ic-protobuf = { path = "../protobuf" }
ic-ic00-types = { path = "../types/ic00_types" }
ic-types = { path = "../types/types" }
async-trait = "0.1.36"
futures-util = "0.3.21"
hyper = { version = "0.14.18", features = ["client", "tcp", "http1", "http2"] }
hyper-rustls = { version = "0.24.0", features = ["http2"] }
itertools = { workspace = true }
prost = { workspace = true }
rustls = { version = "^0.21.0", features = ["dangerous_configuration"] }
serde = { workspace = true }
serde_bytes = { workspace = true }
serde_cbor = { workspace = true }
tokio = { workspace = true }
tree-deserializer = { path = "../tree_deserializer" }
Expand Down
3 changes: 0 additions & 3 deletions rs/canister_client/sender/BUILD.bazel
Expand Up @@ -5,15 +5,12 @@ package(default_visibility = ["//visibility:public"])
DEPENDENCIES = [
"//rs/crypto/ecdsa_secp256k1",
"//rs/crypto/internal/crypto_lib/types",
"//rs/crypto/secrets_containers",
"//rs/crypto/utils/basic_sig",
"//rs/crypto/sha2",
"//rs/types/base_types",
"//rs/types/types",
"@crate_index//:ed25519-consensus",
"@crate_index//:rand",
"@crate_index//:rand_chacha",
"@crate_index//:simple_asn1",
]

DEV_DEPENDENCIES = []
Expand Down
3 changes: 0 additions & 3 deletions rs/canister_client/sender/Cargo.toml
Expand Up @@ -8,13 +8,10 @@ documentation.workspace = true

[dependencies]
ic-base-types = { path = "../../types/base_types" }
ic-crypto-sha2 = { path = "../../crypto/sha2" }
ic-crypto-ecdsa-secp256k1 = { path = "../../crypto/ecdsa_secp256k1" }
ic-crypto-internal-types = { path = "../../crypto/internal/crypto_lib/types" }
ic-crypto-secrets-containers = { path = "../../crypto/secrets_containers" }
ic-crypto-utils-basic-sig = { path = "../../crypto/utils/basic_sig" }
ic-types = { path = "../../types/types" }
ed25519-consensus = "2.0.1"
rand = "0.8"
rand_chacha = "0.3"
simple_asn1 = { workspace = true }
3 changes: 0 additions & 3 deletions rs/canonical_state/BUILD.bazel
Expand Up @@ -14,13 +14,10 @@ DEPENDENCIES = [
"//rs/types/base_types",
"//rs/types/error_types",
"//rs/types/types",
"@crate_index//:itertools",
"@crate_index//:leb128",
"@crate_index//:scoped_threadpool",
"@crate_index//:serde",
"@crate_index//:serde_bytes",
"@crate_index//:serde_cbor",
"@crate_index//:thiserror",
]

MACRO_DEPENDENCIES = []
Expand Down
3 changes: 0 additions & 3 deletions rs/canonical_state/Cargo.toml
Expand Up @@ -17,14 +17,11 @@ ic-registry-routing-table = { path = "../registry/routing_table" }
ic-registry-subnet-type = { path = "../registry/subnet_type" }
ic-replicated-state = { path = "../replicated_state" }
ic-types = { path = "../types/types" }
itertools = { workspace = true }
leb128 = "0.2.1"
phantom_newtype = { path = "../phantom_newtype" }
scoped_threadpool = "0.1.*"
serde = { workspace = true }
serde_bytes = { workspace = true }
serde_cbor = { workspace = true }
thiserror = "1.0"

[dev-dependencies]
assert_matches = "1.3.0"
Expand Down
1 change: 0 additions & 1 deletion rs/config/BUILD.bazel
Expand Up @@ -13,7 +13,6 @@ rust_library(
"//rs/sys",
"//rs/types/base_types",
"//rs/types/types",
"@crate_index//:base64",
"@crate_index//:json5",
"@crate_index//:serde",
"@crate_index//:slog",
Expand Down
1 change: 0 additions & 1 deletion rs/config/Cargo.toml
Expand Up @@ -7,7 +7,6 @@ description.workspace = true
documentation.workspace = true

[dependencies]
base64 = { workspace = true }
ic-base-types = { path = "../types/base_types" }
ic-registry-subnet-type = { path = "../registry/subnet_type" }
ic-types = { path = "../types/types" }
Expand Down
3 changes: 0 additions & 3 deletions rs/determinism_test/BUILD.bazel
Expand Up @@ -18,14 +18,11 @@ DEPENDENCIES = [
"//rs/registry/provisional_whitelist",
"//rs/registry/routing_table",
"//rs/registry/subnet_type",
"//rs/replicated_state",
"//rs/state_manager",
"//rs/test_utilities",
"//rs/test_utilities/registry",
"//rs/types/ic00_types",
"//rs/types/types",
"@crate_index//:clap",
"@crate_index//:hex",
"@crate_index//:slog",
"@crate_index//:tokio",
"@crate_index//:wat",
Expand Down
3 changes: 0 additions & 3 deletions rs/determinism_test/Cargo.toml
Expand Up @@ -7,8 +7,6 @@ description.workspace = true
documentation.workspace = true

[dependencies]
clap = { workspace = true }
hex = "0.4.2"
ic-config = { path = "../config" }
ic-cycles-account-manager = { path = "../cycles_account_manager" }
ic-execution-environment = { path = "../execution_environment" }
Expand All @@ -24,7 +22,6 @@ ic-registry-proto-data-provider = { path = "../registry/proto_data_provider" }
ic-registry-provisional-whitelist = { path = "../registry/provisional_whitelist" }
ic-registry-routing-table = { path = "../registry/routing_table" }
ic-registry-subnet-type = { path = "../registry/subnet_type" }
ic-replicated-state = { path = "../replicated_state" }
ic-state-manager = { path = "../state_manager" }
ic-test-utilities = { path = "../test_utilities" }
ic-test-utilities-registry = { path = "../test_utilities/registry" }
Expand Down
1 change: 0 additions & 1 deletion rs/embedders/benches/embedders_bench/Cargo.toml
Expand Up @@ -10,6 +10,5 @@ documentation.workspace = true
candid = { workspace = true }
canister-test = { path = "../../../rust_canisters/canister_test" }
criterion = { version = "0.5", features = ["html_reports"] }
ic-test-utilities = { path = "../../../test_utilities" }
ic-test-utilities-execution-environment = { path = "../../../test_utilities/execution_environment" }
ic-types = { path = "../../../types/types" }
2 changes: 0 additions & 2 deletions rs/execution_environment/BUILD.bazel
Expand Up @@ -16,7 +16,6 @@ DEPENDENCIES = [
"//rs/embedders",
"//rs/interfaces",
"//rs/interfaces/state_manager",
"//rs/memory_tracker",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"//rs/nns/constants",
Expand All @@ -41,7 +40,6 @@ DEPENDENCIES = [
"@crate_index//:hex",
"@crate_index//:ic-btc-interface",
"@crate_index//:lazy_static",
"@crate_index//:nix",
"@crate_index//:num-rational",
"@crate_index//:num-traits",
"@crate_index//:prometheus",
Expand Down
1 change: 0 additions & 1 deletion rs/execution_environment/Cargo.toml
Expand Up @@ -42,7 +42,6 @@ ic-utils-lru-cache = { path = "../utils/lru_cache" }
ic-wasm-types = { path = "../types/wasm_types" }
lazy_static = "1.4.0"
memory_tracker = { path = "../memory_tracker" }
nix = { workspace = true }
num-rational = "0.2.2"
num-traits = "0.2.12"
phantom_newtype = { path = "../phantom_newtype" }
Expand Down
1 change: 0 additions & 1 deletion rs/execution_environment/tools/Cargo.toml
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[dependencies]
ic-config = { path = "../../config" }
ic-embedders = { path = "../../embedders" }
ic-replicated-state = { path = "../../replicated_state" }
ic-system-api = { path = "../../system_api" }
ic-types = { path = "../../types/types" }
Expand Down
1 change: 0 additions & 1 deletion rs/http_endpoints/public/BUILD.bazel
Expand Up @@ -27,7 +27,6 @@ DEPENDENCIES = [
"//rs/registry/provisional_whitelist",
"//rs/registry/subnet_type",
"//rs/replicated_state",
"//rs/phantom_newtype",
"//rs/types/error_types",
"//rs/types/types",
"//rs/validator",
Expand Down
1 change: 0 additions & 1 deletion rs/http_endpoints/public/Cargo.toml
Expand Up @@ -38,7 +38,6 @@ ic-registry-subnet-type = { path = "../../registry/subnet_type" }
ic-replicated-state = { path = "../../replicated_state" }
ic-types = { path = "../../types/types" }
ic-validator = { path = "../../validator" }
phantom_newtype = { path = "../../phantom_newtype" }
prometheus = { workspace = true }
prost = { workspace = true }
rand = "0.8.3"
Expand Down
4 changes: 0 additions & 4 deletions rs/https_outcalls/adapter/BUILD.bazel
Expand Up @@ -9,7 +9,6 @@ DEPENDENCIES = [
"//rs/monitoring/adapter_metrics_server",
"//rs/monitoring/logger",
"//rs/monitoring/metrics",
"@crate_index//:async-socks5",
"@crate_index//:async-stream",
"@crate_index//:byte-unit",
"@crate_index//:clap",
Expand All @@ -18,13 +17,10 @@ DEPENDENCIES = [
"@crate_index//:hyper",
"@crate_index//:hyper-socks2",
"@crate_index//:hyper-rustls",
"@crate_index//:itertools",
"@crate_index//:prometheus",
"@crate_index//:prost",
"@crate_index//:serde",
"@crate_index//:serde_json",
"@crate_index//:slog",
"@crate_index//:slog-async",
"@crate_index//:thiserror",
"@crate_index//:tokio",
"@crate_index//:tonic",
Expand Down
4 changes: 0 additions & 4 deletions rs/https_outcalls/adapter/Cargo.toml
Expand Up @@ -5,7 +5,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-socks5 = "0.5.1"
async-stream = "0.3.2"
byte-unit = "4.0.14"
clap = { workspace = true }
Expand All @@ -20,13 +19,10 @@ ic-config = { path = "../../config" }
ic-https-outcalls-service = { path = "../service" }
ic-logger = { path = "../../monitoring/logger" }
ic-metrics = { path = "../../monitoring/metrics" }
itertools = { workspace = true }
prometheus = { workspace = true }
prost = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
slog = { workspace = true }
slog-async = "2.7.0"
thiserror = "1.0.26"
tokio = { workspace = true }
tonic = { workspace = true }
Expand Down

0 comments on commit ef23f44

Please sign in to comment.