Skip to content

Commit

Permalink
Cargo: optimize feature flags of tokio
Browse files Browse the repository at this point in the history
Disable full feature of tokio, instead enable only necessary features,
macros, net, rt-multi-thread.
Doing that, build time drops by ~10%.
  • Loading branch information
dongsupark committed Oct 12, 2023
1 parent efa9b9e commit fc210e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
50 changes: 0 additions & 50 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
reqwest = "0.11"
tokio = { version = "1", features = ["full"] }
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread"] }
uuid = "1.2"
sha2 = "0.10"
url = "2"
Expand Down

0 comments on commit fc210e7

Please sign in to comment.