From a6ca5eec5814dc527c89ac1487f0377397517612 Mon Sep 17 00:00:00 2001 From: xxchan Date: Sun, 29 Oct 2023 19:38:34 +0800 Subject: [PATCH] chore: remove unused dependencies (#3414) --- Cargo.lock | 202 ++---------------------------------------------- core/Cargo.toml | 8 +- 2 files changed, 8 insertions(+), 202 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2466fc2c5c3b..719810b15cdd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2882,12 +2882,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "integer-encoding" -version = "3.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bb03732005da905c88227371639bf1ad885cc712789c011c31c5fb3ab3ccf02" - [[package]] name = "io-lifetimes" version = "1.0.11" @@ -3037,18 +3031,7 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff63c423c68ea6814b7da9e88ce585f793c87ddd9e78f646970891769c8235d4" dependencies = [ - "lazy-regex-proc_macros 2.4.1", - "once_cell", - "regex", -] - -[[package]] -name = "lazy-regex" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e723bd417b2df60a0f6a2b6825f297ea04b245d4ba52b5a22cb679bdf58b05fa" -dependencies = [ - "lazy-regex-proc_macros 3.0.1", + "lazy-regex-proc_macros", "once_cell", "regex", ] @@ -3065,18 +3048,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "lazy-regex-proc_macros" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f0a1d9139f0ee2e862e08a9c5d0ba0470f2aa21cd1e1aa1b1562f83116c725f" -dependencies = [ - "proc-macro2", - "quote", - "regex", - "syn 2.0.38", -] - [[package]] name = "lazy_static" version = "1.4.0" @@ -3579,17 +3550,6 @@ dependencies = [ "rand 0.8.5", ] -[[package]] -name = "minitrace-jaeger" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f70e143d20c232d5cf50c2b687d80cd9cad464767ac1d51115227c81dc8a865" -dependencies = [ - "log", - "minitrace", - "thrift_codec", -] - [[package]] name = "minitrace-macro" version = "0.5.1" @@ -4231,8 +4191,6 @@ dependencies = [ "hdrs", "hrana-client-proto", "http", - "hyper", - "lazy-regex 3.0.2", "libtest-mimic", "log", "madsim", @@ -4240,17 +4198,14 @@ dependencies = [ "metrics", "mini-moka", "minitrace", - "minitrace-jaeger", "moka", "mongodb", "mysql_async", "once_cell", "openssh", "openssh-sftp-client", - "opentelemetry 0.20.0", - "opentelemetry-jaeger", + "opentelemetry", "parking_lot 0.12.1", - "paste", "percent-encoding", "persy", "pin-project", @@ -4277,7 +4232,6 @@ dependencies = [ "tokio", "tokio-postgres", "tracing", - "tracing-opentelemetry", "tracing-subscriber", "uuid", "wiremock", @@ -4554,65 +4508,14 @@ dependencies = [ "vcpkg", ] -[[package]] -name = "opentelemetry" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f4b8347cc26099d3aeee044065ecc3ae11469796b4d65d065a23a584ed92a6f" -dependencies = [ - "opentelemetry_api 0.19.0", - "opentelemetry_sdk 0.19.0", -] - [[package]] name = "opentelemetry" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9591d937bc0e6d2feb6f71a559540ab300ea49955229c347a517a28d27784c54" dependencies = [ - "opentelemetry_api 0.20.0", - "opentelemetry_sdk 0.20.0", -] - -[[package]] -name = "opentelemetry-jaeger" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08e028dc9f4f304e9320ce38c80e7cf74067415b1ad5a8750a38bae54a4d450d" -dependencies = [ - "async-trait", - "futures", - "futures-executor", - "once_cell", - "opentelemetry 0.19.0", - "opentelemetry-semantic-conventions", - "thiserror", - "thrift", -] - -[[package]] -name = "opentelemetry-semantic-conventions" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24e33428e6bf08c6f7fcea4ddb8e358fab0fe48ab877a87c70c6ebe20f673ce5" -dependencies = [ - "opentelemetry 0.19.0", -] - -[[package]] -name = "opentelemetry_api" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed41783a5bf567688eb38372f2b7a8530f5a607a4b49d38dd7573236c23ca7e2" -dependencies = [ - "fnv", - "futures-channel", - "futures-util", - "indexmap 1.9.3", - "once_cell", - "pin-project-lite", - "thiserror", - "urlencoding", + "opentelemetry_api", + "opentelemetry_sdk", ] [[package]] @@ -4631,26 +4534,6 @@ dependencies = [ "urlencoding", ] -[[package]] -name = "opentelemetry_sdk" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b3a2a91fdbfdd4d212c0dcc2ab540de2c2bcbbd90be17de7a7daf8822d010c1" -dependencies = [ - "async-trait", - "crossbeam-channel", - "dashmap", - "fnv", - "futures-channel", - "futures-executor", - "futures-util", - "once_cell", - "opentelemetry_api 0.19.0", - "percent-encoding", - "rand 0.8.5", - "thiserror", -] - [[package]] name = "opentelemetry_sdk" version = "0.20.0" @@ -4663,8 +4546,8 @@ dependencies = [ "futures-executor", "futures-util", "once_cell", - "opentelemetry_api 0.20.0", - "ordered-float 3.9.2", + "opentelemetry_api", + "ordered-float", "percent-encoding", "rand 0.8.5", "thiserror", @@ -4676,15 +4559,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" -[[package]] -name = "ordered-float" -version = "2.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c" -dependencies = [ - "num-traits", -] - [[package]] name = "ordered-float" version = "3.9.2" @@ -4787,12 +4661,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "paste" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" - [[package]] name = "pbkdf2" version = "0.11.0" @@ -6669,7 +6537,7 @@ dependencies = [ "async-std", "async-tls", "chrono", - "lazy-regex 2.5.0", + "lazy-regex", "log", "pin-project", "thiserror", @@ -6827,29 +6695,6 @@ dependencies = [ "num_cpus", ] -[[package]] -name = "thrift" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e54bc85fc7faa8bc175c4bab5b92ba8d9a3ce893d0e9f42cc455c8ab16a9e09" -dependencies = [ - "byteorder", - "integer-encoding", - "log", - "ordered-float 2.10.1", - "threadpool", -] - -[[package]] -name = "thrift_codec" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fce3200b189fd4733eb2bb22235755c8aa0361ba1c66b67db54893144d147279" -dependencies = [ - "byteorder", - "trackable", -] - [[package]] name = "tikv-client" version = "0.2.0" @@ -7279,20 +7124,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-opentelemetry" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00a39dcf9bfc1742fa4d6215253b33a6e474be78275884c216fc2a06267b3600" -dependencies = [ - "once_cell", - "opentelemetry 0.19.0", - "tracing", - "tracing-core", - "tracing-log", - "tracing-subscriber", -] - [[package]] name = "tracing-subscriber" version = "0.3.17" @@ -7311,25 +7142,6 @@ dependencies = [ "tracing-log", ] -[[package]] -name = "trackable" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15bd114abb99ef8cee977e517c8f37aee63f184f2d08e3e6ceca092373369ae" -dependencies = [ - "trackable_derive", -] - -[[package]] -name = "trackable_derive" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebeb235c5847e2f82cfe0f07eb971d1e5f6804b18dac2ae16349cc604380f82f" -dependencies = [ - "quote", - "syn 1.0.109", -] - [[package]] name = "triomphe" version = "0.1.9" diff --git a/core/Cargo.toml b/core/Cargo.toml index dd99dd1d18e2..e736896c8026 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -130,7 +130,7 @@ services-dropbox = [] services-etcd = ["dep:etcd-client", "dep:bb8"] services-foundationdb = ["dep:foundationdb"] services-fs = ["tokio/fs"] -services-ftp = ["dep:suppaftp", "dep:lazy-regex", "dep:bb8", "dep:async-tls"] +services-ftp = ["dep:suppaftp", "dep:bb8", "dep:async-tls"] services-gcs = [ "dep:reqsign", "reqsign?/services-google", @@ -235,8 +235,6 @@ governor = { version = "0.5", optional = true, features = ["std"] } hdrs = { version = "0.3.0", optional = true, features = ["async_file"] } hrana-client-proto = { version = "0.2.1", optional = true } http = "0.2.9" -hyper = "0.14" -lazy-regex = { version = "3.0.1", optional = true } log = "0.4" madsim = { version = "0.2.21", optional = true } md-5 = "0.10" @@ -294,18 +292,14 @@ criterion = { version = "0.4", features = ["async", "async_tokio"] } dotenvy = "0.15" libtest-mimic = "0.6" minitrace = { version = "0.5", features = ["enable"] } -minitrace-jaeger = "0.5" opentelemetry = { version = "0.20", default-features = false, features = [ "trace", ] } -opentelemetry-jaeger = "0.18" -paste = "1" pretty_assertions = "1" rand = "0.8" sha2 = "0.10" size = "0.4" tokio = { version = "1.27", features = ["fs", "macros", "rt-multi-thread"] } -tracing-opentelemetry = "0.19" tracing-subscriber = { version = "0.3", features = [ "env-filter", "tracing-log",