Skip to content

Commit b0b67f3

Browse files
Add unused deps check (#283)
1 parent b1aa760 commit b0b67f3

6 files changed

Lines changed: 20 additions & 69 deletions

File tree

.github/actions/setup-rust/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ runs:
3737
shell: bash
3838
run: |
3939
cargo install taplo-cli --locked
40+
cargo install cargo-machete

.github/workflows/checks.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ jobs:
3333
run: cargo fmt --all -- --check
3434
- name: Run taplo
3535
run: taplo format --check
36+
unused-deps:
37+
name: Unused Dependencies
38+
runs-on: ubuntu-latest
39+
strategy:
40+
matrix:
41+
arch: [amd64]
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Setup Rust Toolchain
45+
uses: ./.github/actions/setup-rust
46+
- name: Run cargo machete
47+
run: cargo machete
48+
3649
clippy:
3750
name: Clippy
3851
runs-on: ubuntu-latest

Cargo.lock

Lines changed: 1 addition & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,21 @@ version = "0.2.2"
1717
arrow-flight = { version = "54.1.0", features = [
1818
"flight-sql-experimental",
1919
], optional = true }
20-
async-trait = "0.1.80"
21-
base64 = { version = "0.22.1", optional = true }
22-
chrono = "=0.4.39"
2320
clap = { version = "4.5.27", features = ["derive"] }
2421
color-eyre = "0.6.3"
2522
crossterm = { version = "0.28.1", features = ["event-stream"] }
2623
datafusion = { version = "45.0.0" }
2724
datafusion-app = { version = "0.1.0", path = "crates/datafusion-app" }
28-
datafusion-auth = { version = "0.1.0", path = "crates/datafusion-auth", optional = true }
29-
datafusion-udfs-wasm = { version = "0.1.0", path = "crates/datafusion-udfs-wasm", features = [
30-
"serde",
31-
], optional = true }
3225
directories = "5.0.1"
3326
env_logger = "0.11.5"
3427
futures = "0.3.30"
35-
home = "=0.5.9"
3628
http = "1"
3729
http-body = "1"
3830
itertools = "0.13.0"
3931
lazy_static = "1.4.0"
4032
log = "0.4.22"
4133
metrics = { version = "0.24.0", optional = true }
4234
metrics-exporter-prometheus = { version = "0.16.0", optional = true }
43-
num_cpus = "1.16.0"
44-
object_store = { version = "0.11.0", features = ["aws"], optional = true }
45-
object_store_opendal = { version = "0.49", optional = true }
46-
opendal = { version = "0.51", features = [
47-
"services-huggingface",
48-
], optional = true }
49-
parking_lot = "0.12.3"
5035
parquet = "54.1.0"
5136
pin-project-lite = { version = "0.2.14" }
5237
prost = "0.13.1"
@@ -67,6 +52,9 @@ uuid = { version = "1.10.0" }
6752

6853
[dev-dependencies]
6954
assert_cmd = "2.0.16"
55+
datafusion-udfs-wasm = { version = "0.1.0", path = "crates/datafusion-udfs-wasm", features = [
56+
"serde",
57+
] }
7058
insta = { version = "1.40.0", features = ["yaml"] }
7159
predicates = "3.1.2"
7260
tempfile = "3.2.0"
@@ -90,7 +78,7 @@ hudi = ["datafusion-app/hudi"]
9078
huggingface = ["datafusion-app/huggingface"]
9179
iceberg = ["datafusion-app/iceberg"]
9280
s3 = ["datafusion-app/s3", "url"]
93-
udfs-wasm = ["datafusion-app/udfs-wasm", "dep:datafusion-udfs-wasm"]
81+
udfs-wasm = ["datafusion-app/udfs-wasm"]
9482

9583
[[bin]]
9684
name = "dft"

crates/datafusion-app/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ async-trait = "0.1.80"
1111
base64 = { version = "0.22.1", optional = true }
1212
color-eyre = "0.6.3"
1313
datafusion = "45.0.0"
14-
datafusion-auth = { version = "0.1.0", path = "../datafusion-auth", optional = true }
1514
datafusion-functions-json = { version = "0.45", optional = true }
1615
datafusion-functions-parquet = { version = "0.1.0", path = "..//datafusion-functions-parquet", optional = true }
1716
datafusion-udfs-wasm = { version = "0.1.0", path = "../datafusion-udfs-wasm", features = [
@@ -40,19 +39,12 @@ serde = { version = "1.0.197", features = ["derive"] }
4039
tokio = { version = "1.36.0", features = ["macros", "rt-multi-thread"] }
4140
tokio-stream = { version = "0.1.15", features = ["net"] }
4241
tonic = { version = "0.12.3", optional = true }
43-
tower-http = { version = "0.6.2", features = ["auth"], optional = true }
4442
url = { version = "2.5.2", optional = true }
4543

4644
[features]
4745
default = ["functions-parquet"]
4846
deltalake = ["dep:deltalake"]
49-
flightsql = [
50-
"dep:arrow-flight",
51-
"dep:base64",
52-
"dep:datafusion-auth",
53-
"dep:tonic",
54-
"dep:tower-http",
55-
]
47+
flightsql = ["dep:arrow-flight", "dep:base64", "dep:tonic"]
5648
functions-json = ["dep:datafusion-functions-json"]
5749
functions-parquet = ["dep:datafusion-functions-parquet"]
5850
hudi = ["dep:hudi"]

crates/datafusion-auth/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ name = "datafusion-auth"
44
version = "0.1.0"
55

66
[dependencies]
7-
datafusion = "45.0.0"
8-
http-body = "1.0.1"
9-
tower = "0.5.2"
107
tower-http = { version = "0.5.0", features = ["auth"] }

0 commit comments

Comments
 (0)