Skip to content

Commit

Permalink
Merge pull request #43 from hasura/djh/cargo-machete
Browse files Browse the repository at this point in the history
chore: add cargo machete check
  • Loading branch information
danieljharvey authored Oct 23, 2023
2 parents 9cf7def + 7ce8ac2 commit 2fb9a7f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cargo-machete.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: find unused dependencies

on:
push:

jobs:
cargo-machete:
name: find unused dependencies with cargo machete
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@v4

- name: install tools
run: |
rustup show
cargo install cargo-machete
- uses: Swatinem/rust-cache@v2

- name: find unused dependencies
run: |
cargo machete
3 changes: 0 additions & 3 deletions crates/ndc-sqlserver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ path = "bin/main.rs"
ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "098b1c2", package = "ndc-sdk" }
query-engine = { path = "../query-engine" }

tokio-util = { version = "0.7.9", features = ["compat"] }
tiberius = { version = "0.12.2", default-features = false, features = ["rustls"] }
bb8 = "0.8.1"
bb8-tiberius = "0.15.0"
anyhow = "1.0.75"
async-trait = "0.1.73"
clap = { version = "4.4.6", features = ["derive"] }
schemars = { version = "0.8.15", features = ["smol_str"] }
serde = "1.0.188"
serde_derive = "^1.0"
Expand Down

0 comments on commit 2fb9a7f

Please sign in to comment.