summaryrefslogtreecommitdiff
path: root/exes/rest
diff options
context:
space:
mode:
Diffstat (limited to 'exes/rest')
-rw-r--r--exes/rest/Cargo.toml28
-rw-r--r--exes/rest/src/handler.rs4
2 files changed, 16 insertions, 16 deletions
diff --git a/exes/rest/Cargo.toml b/exes/rest/Cargo.toml
index fb495a0..d37da95 100644
--- a/exes/rest/Cargo.toml
+++ b/exes/rest/Cargo.toml
@@ -6,30 +6,30 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-shared = { path = "../../libs/shared" }
-proto = { path = "../../libs/proto" }
-leash = { path = "../../libs/leash" }
+shared = { workspace = true }
+proto = { workspace = true }
+leash = { workspace = true }
+tracing-opentelemetry = { workspace = true }
+opentelemetry = { workspace = true }
+opentelemetry-http = { workspace = true }
+tracing = { workspace = true }
+tracing-futures = { workspace = true }
+tokio = { workspace = true }
+anyhow = { workspace = true }
+serde = { workspace = true }
+serde_json = { workspace = true }
+hyper = { workspace = true }
-hyper= "0.14"
-http = "0.2.8"
-
-tokio = { version = "1", features = ["rt"] }
-serde = { version = "1.0.8", features = ["derive"] }
futures-util = "0.3.17"
hyper-rustls = "0.23.2"
lazy_static = "1.4.0"
xxhash-rust = { version = "0.8.2", features = ["xxh32"] }
twilight-http-ratelimiting = { git = "https://github.com/MatthieuCoder/twilight.git" }
-tracing = "0.1.37"
-anyhow = "1.0.68"
hashring = "0.3.0"
tonic = "0.8.3"
tokio-stream = "0.1.11"
dns-lookup = "1.0.8"
-opentelemetry = "0.18.0"
-opentelemetry-http = "0.7.0"
-tracing-opentelemetry = "0.18.0"
[target.'cfg(not(target_os = "windows"))'.dependencies]
-tikv-jemallocator = "0.5" \ No newline at end of file
+tikv-jemallocator = { workspace = true } \ No newline at end of file
diff --git a/exes/rest/src/handler.rs b/exes/rest/src/handler.rs
index 3d47935..5e5425e 100644
--- a/exes/rest/src/handler.rs
+++ b/exes/rest/src/handler.rs
@@ -1,6 +1,6 @@
use anyhow::{bail, Context};
-use futures_util::FutureExt;
-use http::{
+use futures_util::future::FutureExt;
+use hyper::http::{
header::{AUTHORIZATION, CONNECTION, HOST, TRANSFER_ENCODING, UPGRADE},
HeaderValue, Method as HttpMethod, Request, Response, Uri,
};