Skip to content

Commit

Permalink
Cargo: removed unused dependencies in examples and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaxiao Zhou (Mossaka) <[email protected]>
  • Loading branch information
Mossaka committed Oct 3, 2024
1 parent 1d69c8c commit 6b76495
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 30 deletions.
6 changes: 0 additions & 6 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 examples/http-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ crate-type = ["cdylib"]
[dependencies]
anyhow = "1"
http = "0.2.9"
serde = { version = "1.0", features = ["derive"] }
spin-sdk = "2.2.0"

[workspace]
1 change: 0 additions & 1 deletion examples/spin-timer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"
[dependencies]
anyhow = "1.0.68"
clap = { version = "3.1.15", features = ["derive", "env"] }
futures = "0.3.25"
serde = "1.0.188"
spin-factors = { path = "../../crates/factors" }
spin-runtime-factors = { path = "../../crates/runtime-factors" }
Expand Down
2 changes: 0 additions & 2 deletions examples/spin-wagi-http/http-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ crate-type = ["cdylib"]
[dependencies]
# Useful crate to handle errors.
anyhow = "1"
# Crate to simplify working with bytes.
bytes = "1"
# General-purpose crate with common HTTP types.
http = "0.2"
# The Spin SDK.
Expand Down
7 changes: 0 additions & 7 deletions tests/test-components/components/Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0.71"
futures = "0.3.28"
hex = "0.4.3"
sha2 = "0.10"
url = "2.4.0"
spin-sdk = "2.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ edition = "2021"
crate-type = ["cdylib"]

[dependencies]
anyhow = "1"
futures = "0.3.30"
helper = { path = "../../helper", default-features = false }
spin-sdk = "2.2"
1 change: 0 additions & 1 deletion tests/test-components/helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[dependencies]
wit-bindgen = { version = "0.16.0", optional = true }
anyhow = { workspace = true }

[features]
default = ["define-component"]
Expand Down
6 changes: 0 additions & 6 deletions tests/testing-framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ edition = "2021"

[dependencies]
anyhow = { workspace = true }
fslock = "0.2.1"
http = "1.0"
http-body-util = "0.1.0"
log = "0.4"
nix = "0.29"
regex = "1.10.2"
reqwest = { workspace = true }
temp-dir = "0.1.11"
test-environment = { workspace = true }
spin-app = { path = "../../crates/app" }
spin-factors-executor = { path = "../../crates/factors-executor" }
spin-http = { path = "../../crates/http" }
spin-loader = { path = "../../crates/loader" }
spin-runtime-factors = { path = "../../crates/runtime-factors" }
spin-trigger = { path = "../../crates/trigger" }
spin-trigger-http = { path = "../../crates/trigger-http" }
toml = { workspace = true }
tokio = { workspace = true }
wasmtime-wasi-http = { workspace = true }

0 comments on commit 6b76495

Please sign in to comment.