some optimization using rustc-hash, parking_lot and tikv-jemallocator

This commit is contained in:
Jun Kurihara 2022-06-28 16:55:07 -04:00
commit 3e850e8410
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
5 changed files with 27 additions and 25 deletions

View file

@ -12,8 +12,7 @@ publish = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["tls"]
tls = ["tokio-rustls", "rustls-pemfile"]
default = []
[dependencies]
anyhow = "1.0.58"
@ -27,7 +26,6 @@ hyper = { version = "0.14.19", default-features = false, features = [
"stream",
] }
log = "0.4.17"
mimalloc = { version = "0.1.29", default-features = false }
tokio = { version = "1.19.2", features = [
"net",
"rt-multi-thread",
@ -36,13 +34,12 @@ tokio = { version = "1.19.2", features = [
"sync",
"macros",
] }
tokio-rustls = { version = "0.23.4", features = [
"early-data",
], optional = true }
rustls-pemfile = { version = "1.0.0", optional = true }
tokio-rustls = { version = "0.23.4", features = ["early-data"] }
rustls-pemfile = { version = "1.0.0" }
rustls = "0.20.6"
rand = "0.8.5"
toml = "0.5.9"
rustc-hash = "1.1.0"
serde = { version = "1.0.137", features = ["derive"] }
hyper-rustls = { version = "0.23.0", default-features = false, features = [
"tokio-runtime",
@ -50,6 +47,7 @@ hyper-rustls = { version = "0.23.0", default-features = false, features = [
"http1",
"http2",
] }
parking_lot = "0.12.1"
# hyper-trust-dns = { version = "0.4.2", default-features = false, features = [
# "rustls-http2",
# "dnssec-ring",
@ -59,6 +57,10 @@ hyper-rustls = { version = "0.23.0", default-features = false, features = [
# "native-tls",
# ] }
[target.'cfg(not(target_env = "msvc"))'.dependencies]
tikv-jemallocator = "0.5.0"
[dev-dependencies]