Apache DataFusion SQL Query Engine
chore: make tokio a workspace dependency (#9187)
Chojan Shang24bbae4529dd
diff --git a/Cargo.toml b/Cargo.tomlindex e99618dd9f..20c3173064 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -75,6 +75,7 @@ serde_json = "1"sqlparser = { version = "0.43.0", features = ["visitor"] }tempfile = "3"thiserror = "1.0.44"+tokio = { version = "1.36", features = ["macros", "rt", "sync"] }url = "2.2"[profile.release]diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.tomlindex ced77c73f5..3ee5474107 100644--- a/benchmarks/Cargo.toml+++ b/benchmarks/Cargo.toml@@ -46,7 +46,7 @@ serde_json = { workspace = true }snmalloc-rs = { version = "0.3", optional = true }structopt = { version = "0.3", default-features = false }test-utils = { path = "../test-utils/", version = "0.1.0" }-tokio = { version = "^1.0", features = ["macros", "rt", "rt-multi-thread", "parking_lot"] }+tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot"] }[dev-dependencies]datafusion-proto = { path = "../datafusion/proto", version = "35.0.0" }diff --git a/datafusion-examples/Cargo.toml b/datafusion-examples/Cargo.tomlindex 6a9cd793d1..0fb49a20a8 100644--- a/datafusion-examples/Cargo.toml+++ b/datafusion-examples/Cargo.toml@@ -53,7 +53,7 @@ prost-derive = { version = "0.12", default-features = false }serde = { version = "1.0.136", features = ["derive"] }serde_json = { workspace = true }tempfile = { workspace = true }-tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread", "sync", "parking_lot"] }+tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot"] }tonic = "0.11"url = { workspace = true }uuid = "1.2"diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.tomlindex 2d795d0f83..429cf35fcd 100644--- a/datafusion/core/Cargo.toml+++ b/datafusion/core/Cargo.toml@@ -90,7 +90,7 @@ pin-project-lite = "^0.2.7"rand = { workspace = true }sqlparser = { workspace = true }tempfile = { workspace = true }-tokio = { version = "1.28", features = ["macros", "rt", "sync"] }+tokio = { workspace = true, feature = ["rt-multi-thread", "parking_lot"] }tokio-util = { version = "0.7.4", features = ["io"], optional = true }url = { workspace = true }uuid = { version = "1.0", features = ["v4"] }@@ -116,7 +116,6 @@ rust_decimal = { version = "1.27.0", features = ["tokio-pg"] }serde_json = { workspace = true }test-utils = { path = "../../test-utils" }thiserror = { workspace = true }-tokio = { version = "1.28", features = ["macros", "rt", "rt-multi-thread", "sync", "fs", "parking_lot"] }tokio-postgres = "0.7.7"[target.'cfg(not(target_os = "windows"))'.dev-dependencies]nix = { version = "0.27.1", features = ["fs"] }diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.tomlindex 509fe778cc..e040e71233 100644--- a/datafusion/physical-expr/Cargo.toml+++ b/datafusion/physical-expr/Cargo.toml@@ -77,7 +77,7 @@ criterion = "0.5"datafusion = { workspace = true }rand = { workspace = true }rstest = { workspace = true }-tokio = { version = "1.28", features = ["rt-multi-thread"] }+tokio = { workspace = true, features = ["rt-multi-thread"] }[[bench]]harness = falsediff --git a/datafusion/physical-plan/Cargo.toml b/datafusion/physical-plan/Cargo.tomlindex 1c638d9c18..74650b5b06 100644--- a/datafusion/physical-plan/Cargo.toml+++ b/datafusion/physical-plan/Cargo.toml@@ -56,18 +56,15 @@ once_cell = "1.18.0"parking_lot = { workspace = true }pin-project-lite = "^0.2.7"rand = { workspace = true }-tokio = { version = "1.28", features = ["sync"] }+tokio = { workspace = true }uuid = { version = "^1.2", features = ["v4"] }[dev-dependencies]rstest = { workspace = true }rstest_reuse = "0.6.0"termtree = "0.4.1"-tokio = { version = "1.28", features = [- "macros",- "rt",+tokio = { workspace = true, features = ["rt-multi-thread",- "sync","fs","parking_lot",] }diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.tomlindex 4d8d1c159f..a1032d28a2 100644--- a/datafusion/proto/Cargo.toml+++ b/datafusion/proto/Cargo.toml@@ -56,4 +56,4 @@ serde_json = { workspace = true, optional = true }[dev-dependencies]doc-comment = { workspace = true }strum = { version = "0.26.1", features = ["derive"] }-tokio = { version = "1.18", features = ["rt-multi-thread"] }+tokio = { workspace = true, features = ["rt-multi-thread"] }diff --git a/datafusion/sqllogictest/Cargo.toml b/datafusion/sqllogictest/Cargo.tomlindex 7185508289..4f8d1b6ac4 100644--- a/datafusion/sqllogictest/Cargo.toml+++ b/datafusion/sqllogictest/Cargo.toml@@ -51,7 +51,7 @@ sqllogictest = "0.19.0"sqlparser = { workspace = true }tempfile = { workspace = true }thiserror = { workspace = true }-tokio = { version = "1.0" }+tokio = { workspace = true }tokio-postgres = { version = "0.7.7", optional = true }[features]@@ -61,7 +61,7 @@ postgres = ["bytes", "chrono", "tokio-postgres", "postgres-types", "postgres-pro[dev-dependencies]env_logger = { workspace = true }num_cpus = { workspace = true }-tokio = { version = "1.0", features = ["rt-multi-thread"] }+tokio = { workspace = true, features = ["rt-multi-thread"] }[[test]]harness = falsediff --git a/datafusion/substrait/Cargo.toml b/datafusion/substrait/Cargo.tomlindex 38414fc5e6..0acee20262 100644--- a/datafusion/substrait/Cargo.toml+++ b/datafusion/substrait/Cargo.toml@@ -39,7 +39,7 @@ prost-types = "0.12"substrait = "0.24.0"[dev-dependencies]-tokio = "1.17"+tokio = { workspace = true }[features]protoc = ["substrait/protoc"]