env:
CC: clang
run: |
- update-alternatives --set ld /usr/bin/lld
make all
- uses: actions/upload-artifact@v3
with:
[[package]]
name = "io-lifetimes"
-version = "1.0.3"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c"
+checksum = "e7d6c6f8c91b4b9ed43484ad1a938e393caf35960fce7f82a040497207bd8e9e"
dependencies = [
"libc",
"windows-sys 0.42.0",
version = "0.1.0"
dependencies = [
"anyhow",
- "env_logger 0.10.0",
"opentelemetry",
"opentelemetry-otlp",
"serde",
"proto",
"redis",
"serde",
+ "serde_json",
"shared",
"test-log",
"tikv-jemallocator",
"tokio-test",
"tonic",
"tracing",
+ "tracing-futures",
"tracing-opentelemetry",
"tracing-subscriber",
"tracing-test",
"dns-lookup",
"futures-util",
"hashring",
- "http",
"hyper",
"hyper-rustls",
"lazy_static",
"opentelemetry-http",
"proto",
"serde",
+ "serde_json",
"shared",
"tikv-jemallocator",
"tokio",
"tokio-stream",
"tonic",
"tracing",
+ "tracing-futures",
"tracing-opentelemetry",
"twilight-http-ratelimiting 0.14.0 (git+https://github.com/MatthieuCoder/twilight.git)",
"xxhash-rust",
"syn",
]
-[[package]]
-name = "serde_test"
-version = "1.0.152"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3611210d2d67e3513204742004d6ac6f589e521861dabb0f649b070eea8bed9e"
-dependencies = [
- "serde",
-]
-
[[package]]
name = "sha-1"
version = "0.10.1"
"redis",
"serde",
"serde_json",
- "serde_repr",
- "serde_test",
- "thiserror",
"tokio",
"tracing",
"twilight-model",
"libs/shared/",\r
"libs/leash/"\r
]\r
+\r
+[workspace.dependencies]\r
+shared = { path = "libs/shared" }\r
+proto = { path = "libs/proto" }\r
+leash = { path = "libs/leash" }\r
+\r
+tokio = { version = "1", features = ["rt-multi-thread"] }\r
+serde = { version = "1", features = ["derive"] }\r
+serde_json = "1"\r
+hyper = "0.14.23"\r
+\r
+anyhow = "1"\r
+\r
+tracing = "0.1"\r
+tracing-futures = "0.2"\r
+tracing-opentelemetry = "0.18"\r
+opentelemetry = "0.18"\r
+opentelemetry-http = "0.7"\r
+tikv-jemallocator = "0.5"\r
+\r
+criterion = { version = "0.4", features = ["async_tokio"] }\r
+tokio-test = "0.4.2"\r
+tracing-test = "0.2.3"\r
+tracing-subscriber = "0.3.16"\r
+test-log = { version = "*", features = ["trace"] }\r
+env_logger = "0.10.0"
\ No newline at end of file
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
# 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
# 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
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,
};
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"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-shared = { path = "../shared" }
-anyhow = "1.0.68"
-tokio = { version = "1.23.1", features = ["rt", "signal"] }
-serde = "1.0.152"
+shared = { workspace = true }
+anyhow = { workspace = true }
+tokio = { workspace = true }
+serde = { workspace = true }
+opentelemetry = { workspace = true }
+tracing-opentelemetry = { workspace = true }
+tracing = { workspace = true }
+
tracing-log = { version = "0.1.3", features = ["env_logger"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
-tracing = "0.1.37"
-env_logger = "0.10.0"
-tracing-opentelemetry = "0.18.0"
-opentelemetry = { version ="0.18.0", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.11.0", features = ["metrics"] }
edition = "2021"
[dependencies]
-serde = { version = "1.0.8", features = ["derive"] }
-serde_json = { version = "1.0" }
-serde_repr = "0.1"
+serde = { workspace = true }
+serde_json = { workspace = true }
+opentelemetry = { workspace = true }
+tracing = { workspace = true }
+tokio = { workspace = true }
config = { version = "0.13", default-features = false, features = ["json", "yaml-rust", "ini"] }
-
-async-nats = "0.26.0"
redis = { version = "0.22.1", features = ["cluster", "connection-manager", "tokio-comp"] }
-tokio = { version = "1", features = ["signal", "rt"] }
-
+async-nats = "0.26.0"
twilight-model = "0.14"
-thiserror = "1.0.38"
anyhow = "1.0.68"
-
-serde_test = "1.0.152"
-
-tracing = "0.1.37"
-opentelemetry-otlp = "0.11.0"
-opentelemetry = "0.18.0"
\ No newline at end of file
+opentelemetry-otlp = "0.11.0"
\ No newline at end of file