Add github actions workflow for unused deps (#7681)
Signed-off-by: Rodolfo Olivieri <rodolfo.olivieri3@gmail.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
name: "Unused Dependencies"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/cargo-machete.yml'
|
||||||
|
- '**/Cargo.toml'
|
||||||
|
- '**/Cargo.lock'
|
||||||
|
- '**/*.rs'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**/Cargo.toml'
|
||||||
|
- '**/Cargo.lock'
|
||||||
|
- '**/*.rs'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
machete:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'block/goose'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
|
- uses: bnjbvr/cargo-machete@7959c845782fed02ee69303126d4a12d64f1db18 # v0.9.1
|
||||||
Generated
+482
-881
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -1,5 +1,9 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["crates/*"]
|
members = [
|
||||||
|
"crates/*",
|
||||||
|
# Mainly for cargo-machete to not error out during inspection.
|
||||||
|
"vendor/v8"
|
||||||
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
@@ -84,4 +88,4 @@ tree-sitter-swift = "0.7"
|
|||||||
tree-sitter-typescript = "0.23"
|
tree-sitter-typescript = "0.23"
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
v8 = { path = "vendor/v8" }
|
v8 = { path = "vendor/v8" }
|
||||||
@@ -11,7 +11,6 @@ description.workspace = true
|
|||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro2 = "1"
|
|
||||||
quote = "1"
|
quote = "1"
|
||||||
syn = { version = "2", features = ["full", "extra-traits"] }
|
syn = { version = "2", features = ["full", "extra-traits"] }
|
||||||
|
|
||||||
|
|||||||
@@ -46,14 +46,12 @@ serde = { workspace = true, features = ["derive"] }
|
|||||||
tower-http = { workspace = true, features = ["cors"] }
|
tower-http = { workspace = true, features = ["cors"] }
|
||||||
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
|
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
|
||||||
async-stream = { workspace = true }
|
async-stream = { workspace = true }
|
||||||
bytes = { workspace = true }
|
|
||||||
http-body-util = "0.1.3"
|
http-body-util = "0.1.3"
|
||||||
uuid = { workspace = true, features = ["v7"] }
|
uuid = { workspace = true, features = ["v7"] }
|
||||||
schemars = { workspace = true, features = ["derive"] }
|
schemars = { workspace = true, features = ["derive"] }
|
||||||
goose-acp-macros = { path = "../goose-acp-macros" }
|
goose-acp-macros = { path = "../goose-acp-macros" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert-json-diff = "2.0.2"
|
|
||||||
async-trait = { workspace = true }
|
async-trait = { workspace = true }
|
||||||
goose-test-support = { path = "../goose-test-support" }
|
goose-test-support = { path = "../goose-test-support" }
|
||||||
wiremock = { workspace = true }
|
wiremock = { workspace = true }
|
||||||
@@ -61,3 +59,7 @@ tempfile = { workspace = true }
|
|||||||
test-case = { workspace = true }
|
test-case = { workspace = true }
|
||||||
axum = { workspace = true }
|
axum = { workspace = true }
|
||||||
rmcp = { workspace = true, features = ["transport-streamable-http-server"] }
|
rmcp = { workspace = true, features = ["transport-streamable-http-server"] }
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
# Used to provide extras imports for sacp
|
||||||
|
ignored = ["agent-client-protocol-schema"]
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ rmcp = { workspace = true }
|
|||||||
clap = { workspace = true }
|
clap = { workspace = true }
|
||||||
cliclack = "0.3.5"
|
cliclack = "0.3.5"
|
||||||
console = "0.16.1"
|
console = "0.16.1"
|
||||||
uuid = { workspace = true }
|
|
||||||
dotenvy = { workspace = true }
|
dotenvy = { workspace = true }
|
||||||
bat = { version = "0.26.1", default-features = false, features = ["regex-onig"] }
|
bat = { version = "0.26.1", default-features = false, features = ["regex-onig"] }
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
@@ -77,3 +76,9 @@ disable-update = []
|
|||||||
tempfile = { workspace = true }
|
tempfile = { workspace = true }
|
||||||
test-case = { workspace = true }
|
test-case = { workspace = true }
|
||||||
tokio = { workspace = true }
|
tokio = { workspace = true }
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
ignored = [
|
||||||
|
# Used only in windows
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ workspace = true
|
|||||||
rmcp = { workspace = true, features = ["server", "client", "transport-io", "macros"] }
|
rmcp = { workspace = true, features = ["server", "client", "transport-io", "macros"] }
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
tokio = { workspace = true }
|
tokio = { workspace = true }
|
||||||
tokio-stream = { workspace = true, features = ["io-util"] }
|
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
||||||
tracing-appender = { workspace = true }
|
tracing-appender = { workspace = true }
|
||||||
@@ -33,42 +32,15 @@ base64 = { workspace = true }
|
|||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
schemars = { workspace = true }
|
schemars = { workspace = true }
|
||||||
shellexpand = { workspace = true }
|
|
||||||
indoc = { workspace = true }
|
indoc = { workspace = true }
|
||||||
xcap = "=0.4.0"
|
|
||||||
reqwest = { workspace = true, features = ["json", "rustls", "system-proxy"], default-features = false }
|
reqwest = { workspace = true, features = ["json", "rustls", "system-proxy"], default-features = false }
|
||||||
chrono = { workspace = true }
|
chrono = { workspace = true }
|
||||||
etcetera = { workspace = true }
|
etcetera = { workspace = true }
|
||||||
tempfile = { workspace = true }
|
tempfile = { workspace = true }
|
||||||
include_dir = { workspace = true }
|
include_dir = { workspace = true }
|
||||||
regex = { workspace = true }
|
|
||||||
once_cell = { workspace = true }
|
once_cell = { workspace = true }
|
||||||
ignore = { workspace = true }
|
|
||||||
lopdf = "0.36.0"
|
lopdf = "0.36.0"
|
||||||
docx-rs = "0.4.7"
|
docx-rs = "0.4.7"
|
||||||
image = { version = "0.24.9", features = ["jpeg"] }
|
image = { version = "0.24.9", features = ["jpeg"] }
|
||||||
umya-spreadsheet = "2.2.3"
|
umya-spreadsheet = "2.2.3"
|
||||||
which = {workspace = true}
|
|
||||||
lru = { workspace = true }
|
|
||||||
tree-sitter = "0.26"
|
|
||||||
tree-sitter-python = "0.25"
|
|
||||||
tree-sitter-rust = "0.24"
|
|
||||||
tree-sitter-javascript = "0.25"
|
|
||||||
tree-sitter-go = "0.25"
|
|
||||||
tree-sitter-java = "0.23"
|
|
||||||
tree-sitter-kotlin-ng = "1.1"
|
|
||||||
tree-sitter-swift = "0.7"
|
|
||||||
tree-sitter-ruby = "0.23"
|
|
||||||
rayon = "1.10"
|
|
||||||
libc = "0.2"
|
|
||||||
# TODO: Fork mpatch or replace with a custom implementation using `similar` crate
|
|
||||||
# for fuzzy patch matching. Current crate has limited maintenance (single maintainer,
|
|
||||||
# ~1000 downloads). Pinned to exact version to prevent supply chain attacks.
|
|
||||||
mpatch = "=0.2.0"
|
|
||||||
tokio-util = { workspace = true }
|
|
||||||
shell-words = "1.1.1"
|
shell-words = "1.1.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
serial_test = { workspace = true }
|
|
||||||
|
|
||||||
[features]
|
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ socket2 = "0.6.1"
|
|||||||
fs2 = { workspace = true }
|
fs2 = { workspace = true }
|
||||||
rustls = { version = "0.23", features = ["aws_lc_rs"] }
|
rustls = { version = "0.23", features = ["aws_lc_rs"] }
|
||||||
uuid = { workspace = true }
|
uuid = { workspace = true }
|
||||||
once_cell = { workspace = true }
|
|
||||||
dirs = { workspace = true }
|
|
||||||
rcgen = "0.13"
|
rcgen = "0.13"
|
||||||
axum-server = { version = "0.8.0", features = ["tls-rustls"] }
|
axum-server = { version = "0.8.0", features = ["tls-rustls"] }
|
||||||
aws-lc-rs = "1.16.0"
|
aws-lc-rs = "1.16.0"
|
||||||
@@ -70,6 +68,9 @@ path = "src/bin/generate_schema.rs"
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tower = "0.5.2"
|
tower = "0.5.2"
|
||||||
env-lock = { workspace = true }
|
|
||||||
wiremock = { workspace = true }
|
[package.metadata.cargo-machete]
|
||||||
tempfile.workspace = true
|
ignored = [
|
||||||
|
# Used only in windows
|
||||||
|
"winreg",
|
||||||
|
]
|
||||||
|
|||||||
@@ -19,3 +19,7 @@ path = "examples/mcp_fixture_server.rs"
|
|||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
# Used for tool description in mcp.rs
|
||||||
|
ignored = ["serde_json"]
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ candle-nn = { version = "0.9", default-features = false }
|
|||||||
candle-transformers = { version = "0.9", default-features = false }
|
candle-transformers = { version = "0.9", default-features = false }
|
||||||
byteorder = "1.5.0"
|
byteorder = "1.5.0"
|
||||||
tokenizers = { version = "0.21.0", default-features = false, features = ["onig"] }
|
tokenizers = { version = "0.21.0", default-features = false, features = ["onig"] }
|
||||||
hf-hub = { version = "0.5.0", default-features = false, features = ["tokio"] }
|
|
||||||
symphonia = { version = "0.5", features = ["all"] }
|
symphonia = { version = "0.5", features = ["all"] }
|
||||||
rubato = "0.16"
|
rubato = "0.16"
|
||||||
zip = "0.6"
|
zip = "0.6"
|
||||||
@@ -138,7 +137,6 @@ tree-sitter-swift = { workspace = true }
|
|||||||
tree-sitter-typescript = { workspace = true }
|
tree-sitter-typescript = { workspace = true }
|
||||||
which = { workspace = true }
|
which = { workspace = true }
|
||||||
pctx_code_mode = { version = "^0.2.3", optional = true }
|
pctx_code_mode = { version = "^0.2.3", optional = true }
|
||||||
unbinder = "0.1.7"
|
|
||||||
pulldown-cmark = "0.13.0"
|
pulldown-cmark = "0.13.0"
|
||||||
llama-cpp-2 = { version = "0.1.137", features = ["sampler"] }
|
llama-cpp-2 = { version = "0.1.137", features = ["sampler"] }
|
||||||
encoding_rs = "0.8.35"
|
encoding_rs = "0.8.35"
|
||||||
@@ -183,3 +181,12 @@ path = "src/bin/analyze_cli.rs"
|
|||||||
[[bin]]
|
[[bin]]
|
||||||
name = "build_canonical_models"
|
name = "build_canonical_models"
|
||||||
path = "src/providers/canonical/build_canonical_models.rs"
|
path = "src/providers/canonical/build_canonical_models.rs"
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
|
||||||
|
ignored = [
|
||||||
|
# Used only on windows
|
||||||
|
"winapi",
|
||||||
|
# Used to provide sacp additional schemas to deserialization
|
||||||
|
"agent-client-protocol-schema"
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user