Skip to content

Commit

Permalink
Reduce tokio feature scope
Browse files Browse the repository at this point in the history
Instead of using "full", we now only use the features we need. This
removes a few downstream dependencies, shortening build times slightly.

This also means the "parking_lot" feature is no longer enabled. It is
generally accepted that the default std::sync::Mutex which is now used
again by tokio is faster for the general case than the parking_lot mutex
implementation.

Signed-off-by: Lee Smet <[email protected]>
  • Loading branch information
LeeSmet committed Feb 9, 2024
1 parent d856861 commit a16f4e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 50 deletions.
49 changes: 0 additions & 49 deletions Cargo.lock

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

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ license-file = "LICENSE"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tokio = { version = "1.36.0", features = ["full"] }
tokio = { version = "1.36.0", features = [
"fs",
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
] }
tokio-util = { version = "0.7.10", features = ["codec"] }
clap = { version = "4.4.8", features = ["derive"] }
futures = "0.3.29"
Expand Down

0 comments on commit a16f4e4

Please sign in to comment.