chore: add machete check to ensure no unused dependencies (#701)
* refactor: remove useless dependencies * add macheter0.5
parent
b4fe249636
commit
03a9c7dac3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2138,7 +2138,6 @@ dependencies = [
|
|||
"futures",
|
||||
"tabby-inference",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -4062,7 +4061,6 @@ dependencies = [
|
|||
"axum-streams",
|
||||
"axum-tracing-opentelemetry",
|
||||
"clap 4.4.7",
|
||||
"futures",
|
||||
"http-api-bindings",
|
||||
"hyper",
|
||||
"lazy_static",
|
||||
|
|
@ -4089,7 +4087,6 @@ dependencies = [
|
|||
"textdistance",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"tower",
|
||||
"tower-http 0.4.0",
|
||||
"tracing",
|
||||
"tracing-opentelemetry",
|
||||
|
|
@ -4148,11 +4145,9 @@ version = "0.5.0"
|
|||
dependencies = [
|
||||
"anyhow",
|
||||
"file-rotate",
|
||||
"filenamify",
|
||||
"ignore",
|
||||
"job_scheduler",
|
||||
"lazy_static",
|
||||
"serde",
|
||||
"serde-jsonlines",
|
||||
"serde_json",
|
||||
"tabby-common",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
@ -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"] }
|
||||
|
|
|
|||
Loading…
Reference in New Issue