Skip to content

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
Found with cargo machete: https://lib.rs/crates/cargo-machete
  • Loading branch information
g2p authored and bikeshedder committed Apr 1, 2024
1 parent 957e126 commit dbf4975
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 46 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ deadpool-runtime = { version = "0.1", path = "./runtime" }
# `tokio::sync::Semaphore`. No other features of `tokio` are enabled or used
# unless the `rt_tokio_1` feature is enabled.
tokio = { version = "1.0", features = ["sync"] }
console = "0.15.7"

[dev-dependencies]
async-std = { version = "1.0", features = ["attributes"] }
Expand Down
9 changes: 0 additions & 9 deletions examples/diesel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ authors = ["Michael P. Jung <michael.jung@terreon.de>"]
publish = false

[dependencies]
actix-web = "4.0.1"
anyhow = "1.0.65"
config = "0.14"
deadpool = { path = "../.." }
deadpool-diesel = { path = "../../diesel", features = ["postgres"] }
diesel = { version = "2.0.0", features = ["postgres", "chrono"] }
dotenvy = "0.15"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tokio-postgres = { version = "0.7", features = ["with-uuid-1"] }
uuid = { version = "1", features = ["serde"] }
14 changes: 0 additions & 14 deletions examples/readme/Cargo.toml

This file was deleted.

19 changes: 0 additions & 19 deletions examples/readme/src/main.rs

This file was deleted.

3 changes: 3 additions & 0 deletions lapin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ async-global-executor = { version = "2.3.1", optional = true, default-features =
config = { version = "0.14", features = ["json"] }
dotenvy = "0.15"
tokio = { version = "1.0", features = ["sync", "macros", "rt-multi-thread"] }

[package.metadata.cargo-machete]
ignored = ["async-global-executor"]
5 changes: 3 additions & 2 deletions memcached/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ async-memcached = { version = "0.1", default-features = false }
deadpool = { path = "../", version = "0.11.0", default-features = false, features = [
"managed",
] }
futures = { version = "0.3", features = ["compat"] }
log = "0.4"
# This crate doesn't directly depend on tokio but async-memcached 0.1.7
# broke the build by forgetting to add the "net" feature to the tokio
# dependency. Once async-memcached is fixed this dependency can be removed
# again.
tokio = { version = "1.0", default-features = false, features = ["net"] }

[package.metadata.cargo-machete]
ignored = ["tokio"]
1 change: 0 additions & 1 deletion sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ serde = { package = "serde", version = "1.0", features = [

[dev-dependencies]
config = { version = "0.14", features = ["json"] }
dotenvy = "0.15"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }

0 comments on commit dbf4975

Please sign in to comment.