Skip to content

Commit 48f9e3e

Browse files
authored
feat: Add cargo machete (#448)
* adding cargo machete to check unused dependencies * remove default values * adding a tag version instead of main * running cargo machete natively * removing unused dependency urlencoding * bug fixes
1 parent 8782665 commit 48f9e3e

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
- name: Cargo sort
5151
run: make cargo-sort
5252

53+
- name: Cargo Machete
54+
run: make cargo-machete
55+
5356
build:
5457
runs-on: ${{ matrix.os }}
5558
strategy:

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ tempfile = "3.8"
8484
tokio = { version = "1", default-features = false }
8585
typed-builder = "^0.18"
8686
url = "2"
87-
urlencoding = "2"
8887
uuid = "1.6.1"
8988
volo-thrift = "0.10"
9089
hive_metastore = "0.1.0"

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ cargo-sort:
3232
cargo install cargo-sort
3333
cargo sort -c -w
3434

35+
cargo-machete:
36+
cargo install cargo-machete
37+
cargo machete
38+
3539
fix-toml:
3640
cargo install taplo-cli --locked
3741
taplo fmt

crates/catalog/rest/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ serde_derive = { workspace = true }
4242
serde_json = { workspace = true }
4343
tokio = { workspace = true, features = ["sync"] }
4444
typed-builder = { workspace = true }
45-
urlencoding = { workspace = true }
4645
uuid = { workspace = true, features = ["v4"] }
4746

4847
[dev-dependencies]

0 commit comments

Comments
 (0)