chore: add machete check to ensure no unused dependencies (#701)
* refactor: remove useless dependencies * add machetefeat-adding-an-auto-completion-component
parent
33ef27ba30
commit
00e0c4fddc
|
|
@ -56,6 +56,9 @@ jobs:
|
||||||
- name: Cargo fmt
|
- name: Cargo fmt
|
||||||
run: cargo +nightly fmt --check
|
run: cargo +nightly fmt --check
|
||||||
|
|
||||||
|
- name: Cargo Machete
|
||||||
|
uses: bnjbvr/cargo-machete@main
|
||||||
|
|
||||||
- run: bash ./ci/prepare_build_environment.sh
|
- run: bash ./ci/prepare_build_environment.sh
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
|
|
||||||
|
|
@ -2138,7 +2138,6 @@ dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"tabby-inference",
|
"tabby-inference",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-util",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -4062,7 +4061,6 @@ dependencies = [
|
||||||
"axum-streams",
|
"axum-streams",
|
||||||
"axum-tracing-opentelemetry",
|
"axum-tracing-opentelemetry",
|
||||||
"clap 4.4.7",
|
"clap 4.4.7",
|
||||||
"futures",
|
|
||||||
"http-api-bindings",
|
"http-api-bindings",
|
||||||
"hyper",
|
"hyper",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
|
|
@ -4089,7 +4087,6 @@ dependencies = [
|
||||||
"textdistance",
|
"textdistance",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tower",
|
|
||||||
"tower-http 0.4.0",
|
"tower-http 0.4.0",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-opentelemetry",
|
"tracing-opentelemetry",
|
||||||
|
|
@ -4148,11 +4145,9 @@ version = "0.6.0-dev"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"file-rotate",
|
"file-rotate",
|
||||||
"filenamify",
|
|
||||||
"ignore",
|
"ignore",
|
||||||
"job_scheduler",
|
"job_scheduler",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"serde",
|
|
||||||
"serde-jsonlines",
|
"serde-jsonlines",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"tabby-common",
|
"tabby-common",
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
serdeconv = "0.4.1"
|
serdeconv = "0.4.1"
|
||||||
tokio = "1.28"
|
tokio = "1.28"
|
||||||
tokio-util = "0.7"
|
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = "0.3"
|
tracing-subscriber = "0.3"
|
||||||
anyhow = "1.0.71"
|
anyhow = "1.0.71"
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,5 @@ async-trait = { workspace = true }
|
||||||
tokio = { workspace = true, features = ["rt"] }
|
tokio = { workspace = true, features = ["rt"] }
|
||||||
tabby-inference = { path = "../tabby-inference" }
|
tabby-inference = { path = "../tabby-inference" }
|
||||||
derive_builder = { workspace = true }
|
derive_builder = { workspace = true }
|
||||||
tokio-util = { workspace = true }
|
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
async-stream.workspace = true
|
async-stream.workspace = true
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,12 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
filenamify = "0.1.0"
|
|
||||||
job_scheduler = "1.2.1"
|
job_scheduler = "1.2.1"
|
||||||
tabby-common = { path = "../tabby-common" }
|
tabby-common = { path = "../tabby-common" }
|
||||||
tantivy = { workspace = true }
|
tantivy = { workspace = true }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
tree-sitter-tags = "0.20.2"
|
tree-sitter-tags = "0.20.2"
|
||||||
lazy_static = { workspace = true }
|
lazy_static = { workspace = true }
|
||||||
serde = { workspace = true }
|
|
||||||
serde-jsonlines = { workspace = true }
|
serde-jsonlines = { workspace = true }
|
||||||
file-rotate = "0.7.5"
|
file-rotate = "0.7.5"
|
||||||
tree-sitter-python = "0.20.2"
|
tree-sitter-python = "0.20.2"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ tabby-inference = { path = "../tabby-inference" }
|
||||||
axum = "0.6"
|
axum = "0.6"
|
||||||
hyper = { version = "0.14", features = ["full"] }
|
hyper = { version = "0.14", features = ["full"] }
|
||||||
tokio = { workspace = true, features = ["full"] }
|
tokio = { workspace = true, features = ["full"] }
|
||||||
tower = "0.4"
|
|
||||||
utoipa = { version = "3.3", features = ["axum_extras", "preserve_order"] }
|
utoipa = { version = "3.3", features = ["axum_extras", "preserve_order"] }
|
||||||
utoipa-swagger-ui = { version = "3.1", features = ["axum"] }
|
utoipa-swagger-ui = { version = "3.1", features = ["axum"] }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
|
|
@ -38,7 +37,6 @@ anyhow = { workspace = true }
|
||||||
sysinfo = "0.29.8"
|
sysinfo = "0.29.8"
|
||||||
nvml-wrapper = "0.9.0"
|
nvml-wrapper = "0.9.0"
|
||||||
http-api-bindings = { path = "../http-api-bindings" }
|
http-api-bindings = { path = "../http-api-bindings" }
|
||||||
futures = { workspace = true }
|
|
||||||
async-stream = { workspace = true }
|
async-stream = { workspace = true }
|
||||||
axum-streams = { version = "0.9.1", features = ["json"] }
|
axum-streams = { version = "0.9.1", features = ["json"] }
|
||||||
minijinja = { version = "1.0.8", features = ["loader"] }
|
minijinja = { version = "1.0.8", features = ["loader"] }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue