Skip to content

Commit

Permalink
chore: add machete check to ensure no unused dependencies (#701)
Browse files Browse the repository at this point in the history
* refactor: remove useless dependencies

* add machete
  • Loading branch information
wsxiaoys authored Nov 5, 2023
1 parent 33ef27b commit 00e0c4f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- name: Cargo fmt
run: cargo +nightly fmt --check

- name: Cargo Machete
uses: bnjbvr/cargo-machete@main

- run: bash ./ci/prepare_build_environment.sh

- name: Run unit tests
Expand Down
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
serdeconv = "0.4.1"
tokio = "1.28"
tokio-util = "0.7"
tracing = "0.1"
tracing-subscriber = "0.3"
anyhow = "1.0.71"
Expand Down
1 change: 0 additions & 1 deletion crates/llama-cpp-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ async-trait = { workspace = true }
tokio = { workspace = true, features = ["rt"] }
tabby-inference = { path = "../tabby-inference" }
derive_builder = { workspace = true }
tokio-util = { workspace = true }
futures.workspace = true
async-stream.workspace = true
2 changes: 0 additions & 2 deletions crates/tabby-scheduler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ edition = "2021"

[dependencies]
anyhow = { workspace = true }
filenamify = "0.1.0"
job_scheduler = "1.2.1"
tabby-common = { path = "../tabby-common" }
tantivy = { workspace = true }
tracing = { workspace = true }
tree-sitter-tags = "0.20.2"
lazy_static = { workspace = true }
serde = { workspace = true }
serde-jsonlines = { workspace = true }
file-rotate = "0.7.5"
tree-sitter-python = "0.20.2"
Expand Down
2 changes: 0 additions & 2 deletions crates/tabby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ tabby-inference = { path = "../tabby-inference" }
axum = "0.6"
hyper = { version = "0.14", features = ["full"] }
tokio = { workspace = true, features = ["full"] }
tower = "0.4"
utoipa = { version = "3.3", features = ["axum_extras", "preserve_order"] }
utoipa-swagger-ui = { version = "3.1", features = ["axum"] }
serde = { workspace = true }
Expand All @@ -38,7 +37,6 @@ anyhow = { workspace = true }
sysinfo = "0.29.8"
nvml-wrapper = "0.9.0"
http-api-bindings = { path = "../http-api-bindings" }
futures = { workspace = true }
async-stream = { workspace = true }
axum-streams = { version = "0.9.1", features = ["json"] }
minijinja = { version = "1.0.8", features = ["loader"] }
Expand Down

0 comments on commit 00e0c4f

Please sign in to comment.