diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 13:14:40 +0400 | 
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-16 13:14:40 +0400 | 
| commit | e72357c34bf548ce15e7cd2424a339994c1792e1 (patch) | |
| tree | c5b8767ed05aa10b30dbed054e87e7b0aabff7c1 /exes | |
| parent | 5d925b8045306369ae52966f0a27d65a72cd878d (diff) | |
clean dependencies
Diffstat (limited to 'exes')
| -rw-r--r-- | exes/gateway/Cargo.toml | 32 | ||||
| -rw-r--r-- | exes/ratelimit/Cargo.toml | 47 | ||||
| -rw-r--r-- | exes/rest/Cargo.toml | 28 | ||||
| -rw-r--r-- | exes/rest/src/handler.rs | 4 | ||||
| -rw-r--r-- | exes/webhook/Cargo.toml | 19 | 
5 files changed, 60 insertions, 70 deletions
diff --git a/exes/gateway/Cargo.toml b/exes/gateway/Cargo.toml index e7a0813..375a020 100644 --- a/exes/gateway/Cargo.toml +++ b/exes/gateway/Cargo.toml @@ -4,30 +4,24 @@ version = "0.1.0"  edition = "2018"  [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 } -tokio = { version = "1", features = ["rt", "signal"] }  tokio-stream = "0.1.11" -  twilight-gateway = { version = "0.14" }  twilight-model = "0.14" -  bytes = "1.3.0" -anyhow = "1.0.68" - -serde = { version = "1.0.8", features = ["derive"] } -serde_json = { version = "1.0" } - -tracing = "0.1.37" -tracing-futures = "0.2.5" -  async-nats = "0.26.0" -tracing-opentelemetry = "0.18.0" -opentelemetry = "0.18.0" -opentelemetry-http = "0.7.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/ratelimit/Cargo.toml b/exes/ratelimit/Cargo.toml index 1d28f3b..d7dc554 100644 --- a/exes/ratelimit/Cargo.toml +++ b/exes/ratelimit/Cargo.toml @@ -6,39 +6,36 @@ edition = "2021"  # 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" } - -hyper = "0.14" -tokio = { version = "1", features = ["rt"] } - -serde = { version = "1.0.8", features = ["derive"] } +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 }  twilight-http-ratelimiting = { git = "https://github.com/MatthieuCoder/twilight.git" } -anyhow = "*" -tracing = "*" -tracing-opentelemetry = "0.18.0" -opentelemetry = "0.18.0" -opentelemetry-http = "0.7.0" -  tonic = "0.8.3"  tokio-stream = "0.1.11" - -  redis = { version = "0.22.1", features = ["cluster", "connection-manager", "tokio-comp"] }  [dev-dependencies] -criterion = { version = "0.4", features = ["async_tokio"] } -tokio-test = "*" -tracing-test = "0.2.3" -tracing-subscriber = "*" -env_logger = "*" -test-log = { version = "0.2.11", features = ["log", "trace"] } +criterion = { workspace = true } +tokio-test = { workspace = true } +tracing-test = { workspace = true } +tracing-subscriber = { workspace = true } +test-log = { workspace = true } +env_logger = { workspace = true } + +[target.'cfg(not(target_os = "windows"))'.dependencies] +tikv-jemallocator = { workspace = true }  [[bench]]  name = "bucket"  harness = false - -[target.'cfg(not(target_os = "windows"))'.dependencies] -tikv-jemallocator = "0.5"
\ No newline at end of file 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,  }; diff --git a/exes/webhook/Cargo.toml b/exes/webhook/Cargo.toml index e4fc0ac..7b4a185 100644 --- a/exes/webhook/Cargo.toml +++ b/exes/webhook/Cargo.toml @@ -4,20 +4,19 @@ version = "0.1.0"  edition = "2018"  [dependencies] -hyper = "0.14" -tokio = { version = "1", features = ["rt"] } -shared = { path = "../../libs/shared" } -proto = { path = "../../libs/proto" } -leash = { path = "../../libs/leash" } -tracing = "0.1.37" - -serde = { version = "1.0.8", features = ["derive"] } -serde_json = { version = "1.0" } +tokio = { workspace = true } +shared = { workspace = true } +proto = { workspace = true } +leash = { workspace = true } +tracing = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +hyper = { workspace = true } +anyhow = { workspace = true }  hex = "0.4.3"  ed25519-dalek = "1"  twilight-model = { version = "0.14" } -anyhow = "1.0.68"  async-nats = "0.26.0"  | 
