Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Clean up not used crates #17260

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,9 @@ enum-as-inner = "0.6"
enum_dispatch = "0.3.13"
enumflags2 = { version = "0.7.7", features = ["serde"] }
ethnum = { version = "1.5.0" }
fallible-streaming-iterator = "0.1"
faststr = "0.2"
feature-set = { version = "0.1.1" }
flatbuffers = "24" # Must use the same version with arrow-ipc
flate2 = "1"
foreign_vec = "0.1.0"
fs_extra = "1.3.0"
futures = "0.3.24"
Expand All @@ -324,9 +322,7 @@ hostname = "0.3.1"
http = "1"
humantime = "2.1.0"
hyper = "1"
hyper-tls = "0.5.0"
hyper-util = { version = "0.1.9", features = ["client", "client-legacy", "tokio", "service"] }
hyper_v014 = { package = "hyper", version = "0.14", features = ["client", "tcp"] }
iceberg = { version = "0.3.0", git = "https://github.com/Xuanwo/iceberg-rust/", rev = "01d706a1" }
iceberg-catalog-glue = { version = "0.3.0", git = "https://github.com/Xuanwo/iceberg-rust/", rev = "01d706a1" }
iceberg-catalog-hms = { version = "0.3.0", git = "https://github.com/Xuanwo/iceberg-rust/", rev = "01d706a1" }
Expand Down Expand Up @@ -402,15 +398,13 @@ ordq = "0.2.0"
p256 = "0.13"
parking_lot = "0.12.1"
parquet = { version = "53", features = ["async"] }
parquet-format-safe = "0.2"
passwords = { version = "3.1.16", features = ["common-password"] }
paste = "1.0.15"
percent-encoding = "2.3.1"
petgraph = { version = "0.6.2", features = ["serde-1"] }
pin-project = "1"
pin-project-lite = "0.2.9"
poem = { version = "3.0", features = ["openssl-tls", "multipart", "compression", "cookie"] }
pot = "2.0.0"
pprof = { version = "0.14.0", features = [
"flamegraph",
"protobuf-codec",
Expand All @@ -423,7 +417,6 @@ proptest = { version = "1", default-features = false, features = ["std"] }
prost = { version = "0.13" }
prost-build = { version = "0.13" }
prqlc = "0.11.3"
quanta = "0.11.1"
raft-log = { version = "0.2.6" }
rand = { version = "0.8.5", features = ["small_rng"] }
rayon = "1.9.0"
Expand All @@ -450,7 +443,6 @@ rustls-pki-types = "1"
rustyline = "14"
scroll = "0.12.0"
semver = "1.0.14"
seq-macro = { version = "0.3", default-features = false }
serde = { version = "1.0.164", features = ["derive", "rc"] }
serde_derive = "1"
serde_json = { version = "1.0.85", default-features = false, features = ["preserve_order", "unbounded_depth"] }
Expand All @@ -474,8 +466,6 @@ span-map = { version = "0.2.0" }
sqlx = { version = "0.8", features = ["mysql", "runtime-tokio"] }
state = "0.6.0"
stream-more = "0.1.3"
streaming-decompression = "0.1"
streaming-iterator = "0.1"
strength_reduce = "0.2.4"
stringslice = "0.2.0"
strum = "0.24.1"
Expand All @@ -495,10 +485,8 @@ thiserror = { version = "1" }
thrift = "0.17.0"
tikv-jemalloc-ctl = { version = "0.6.0", features = ["use_std", "stats"] }
tikv-jemalloc-sys = "0.6.0"
time = "0.3.14" # FIXME: better to replace by chrono
tokio = { version = "1.35.0", features = ["full"] }
tokio-stream = "0.1.11"
tokio-util = { version = "0.7", features = ["compat"] }
toml = { version = "0.8", default-features = false }
tonic = { version = "0.12.3", features = ["transport", "codegen", "prost", "tls-roots", "tls"] }
tonic-build = { version = "0.12.3" }
Expand All @@ -518,7 +506,6 @@ wiremock = "0.6"
wkt = "0.10.3"
xorf = { version = "0.11.0", default-features = false, features = ["binary-fuse"] }
xorfilter-rs = "0.5"
xxhash-rust = { version = "0.8", features = ["xxh64"] }
zstd = "0.12.3"

# AST needed
Expand All @@ -531,7 +518,6 @@ logos = "0.12.1"
nom = "7.1.1"
nom-rule = "0.4"
pratt = "0.4.0"
pretty = "0.11.3"
rspack-codespan-reporting = "0.11"
rustc-demangle = "0.1"
strsim = "0.10"
Expand All @@ -556,7 +542,6 @@ opentelemetry_sdk = { version = "0.26.0", features = ["trace", "logs", "rt-tokio
prometheus-client = "0.22"
prometheus-parse = "0.2.3"
tracing = "0.1.40"
tracing-appender = "0.2.3"
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "json", "valuable"] }

# Databend Integration Test
Expand Down
1 change: 0 additions & 1 deletion src/common/grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ anyerror = { workspace = true }
hickory-resolver = { workspace = true }
hyper = { workspace = true }
hyper-util = { workspace = true }
hyper_v014 = { workspace = true }
jwt-simple = { workspace = true }
log = { workspace = true }
serde = { workspace = true }
Expand Down
26 changes: 0 additions & 26 deletions src/common/grpc/src/dns_resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ use hickory_resolver::TokioAsyncResolver;
use hyper::Uri;
use hyper_util::client::legacy::connect::dns::Name;
use hyper_util::client::legacy::connect::HttpConnector;
use hyper_v014::client::connect::dns::Name as Hyperv014Name;
use log::info;
use serde::Deserialize;
use serde::Serialize;
Expand Down Expand Up @@ -110,31 +109,6 @@ impl tower_service::Service<Name> for DNSService {
}
}

// resolve Name of hyper version 0.14
impl tower_service::Service<Hyperv014Name> for DNSService {
type Response = DNSServiceAddrs;
type Error = ErrorCode;
type Future = DNSServiceFuture;

fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<std::result::Result<(), Self::Error>> {
Poll::Ready(Ok(()))
}

fn call(&mut self, name: Hyperv014Name) -> Self::Future {
let blocking = runtime::spawn(async move {
let resolver = DNSResolver::instance()?;
match resolver.resolve(name.to_string()).await {
Err(err) => Err(err),
Ok(addrs) => Ok(DNSServiceAddrs {
inner: addrs.into_iter(),
}),
}
});

DNSServiceFuture { inner: blocking }
}
}

pub struct DNSServiceFuture {
inner: JoinHandle<Result<DNSServiceAddrs>>,
}
Expand Down
Loading