diff --git a/.github/workflows/cargo-machete.yaml b/.github/workflows/cargo-machete.yaml new file mode 100644 index 00000000..ec913608 --- /dev/null +++ b/.github/workflows/cargo-machete.yaml @@ -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 diff --git a/crates/ndc-sqlserver/Cargo.toml b/crates/ndc-sqlserver/Cargo.toml index 4dd7ac73..cd28822f 100644 --- a/crates/ndc-sqlserver/Cargo.toml +++ b/crates/ndc-sqlserver/Cargo.toml @@ -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"