Skip to content

Commit b5fc1d5

Browse files
committed
feat: add detect-unused-dependencies job and configure cargo-machete
1 parent f210939 commit b5fc1d5

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

.github/workflows/dependencies.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,14 @@ jobs:
5656
run: |
5757
cd dev/depcheck
5858
cargo run
59+
60+
detect-unused-dependencies:
61+
runs-on: ubuntu-latest
62+
container:
63+
image: amd64/rust
64+
steps:
65+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
66+
- name: Machete
67+
uses: bnjbvr/cargo-machete@main
68+
with:
69+
args: --with-metadata

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

datafusion/catalog-listing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ datafusion-expr = { workspace = true }
4141
datafusion-physical-expr = { workspace = true }
4242
datafusion-physical-expr-common = { workspace = true }
4343
datafusion-physical-plan = { workspace = true }
44-
datafusion-session = { workspace = true }
4544
futures = { workspace = true }
4645
log = { workspace = true }
4746
object_store = { workspace = true }

datafusion/core/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ zstd = { version = "0.13", optional = true, default-features = false }
163163
async-trait = { workspace = true }
164164
criterion = { workspace = true, features = ["async_tokio", "async_futures"] }
165165
ctor = { workspace = true }
166-
dashmap = "6.1.0"
167-
datafusion-doc = { workspace = true }
168166
datafusion-functions-window-common = { workspace = true }
169-
datafusion-macros = { workspace = true }
170167
datafusion-physical-optimizer = { workspace = true }
171168
doc-comment = { workspace = true }
172169
env_logger = { workspace = true }

datafusion/wasmtest/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ object_store = { workspace = true }
6161
tokio = { workspace = true }
6262
url = { workspace = true }
6363
wasm-bindgen-test = "0.3.54"
64+
65+
[package.metadata.cargo-machete]
66+
ignored = ["chrono", "getrandom"]

0 commit comments

Comments
 (0)