clean dependencies

This commit is contained in:
MatthieuCoder 2023-01-16 13:14:40 +04:00
parent 5d925b8045
commit e72357c34b
10 changed files with 107 additions and 109 deletions

View file

@ -130,7 +130,6 @@ jobs:
env: env:
CC: clang CC: clang
run: | run: |
update-alternatives --set ld /usr/bin/lld
make all make all
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
with: with:

22
Cargo.lock generated
View file

@ -1143,9 +1143,9 @@ dependencies = [
[[package]] [[package]]
name = "io-lifetimes" name = "io-lifetimes"
version = "1.0.3" version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c" checksum = "e7d6c6f8c91b4b9ed43484ad1a938e393caf35960fce7f82a040497207bd8e9e"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.42.0", "windows-sys 0.42.0",
@ -1218,7 +1218,6 @@ name = "leash"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"env_logger 0.10.0",
"opentelemetry", "opentelemetry",
"opentelemetry-otlp", "opentelemetry-otlp",
"serde", "serde",
@ -1945,6 +1944,7 @@ dependencies = [
"proto", "proto",
"redis", "redis",
"serde", "serde",
"serde_json",
"shared", "shared",
"test-log", "test-log",
"tikv-jemallocator", "tikv-jemallocator",
@ -1953,6 +1953,7 @@ dependencies = [
"tokio-test", "tokio-test",
"tonic", "tonic",
"tracing", "tracing",
"tracing-futures",
"tracing-opentelemetry", "tracing-opentelemetry",
"tracing-subscriber", "tracing-subscriber",
"tracing-test", "tracing-test",
@ -2057,7 +2058,6 @@ dependencies = [
"dns-lookup", "dns-lookup",
"futures-util", "futures-util",
"hashring", "hashring",
"http",
"hyper", "hyper",
"hyper-rustls", "hyper-rustls",
"lazy_static", "lazy_static",
@ -2066,12 +2066,14 @@ dependencies = [
"opentelemetry-http", "opentelemetry-http",
"proto", "proto",
"serde", "serde",
"serde_json",
"shared", "shared",
"tikv-jemallocator", "tikv-jemallocator",
"tokio", "tokio",
"tokio-stream", "tokio-stream",
"tonic", "tonic",
"tracing", "tracing",
"tracing-futures",
"tracing-opentelemetry", "tracing-opentelemetry",
"twilight-http-ratelimiting 0.14.0 (git+https://github.com/MatthieuCoder/twilight.git)", "twilight-http-ratelimiting 0.14.0 (git+https://github.com/MatthieuCoder/twilight.git)",
"xxhash-rust", "xxhash-rust",
@ -2297,15 +2299,6 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "serde_test"
version = "1.0.152"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3611210d2d67e3513204742004d6ac6f589e521861dabb0f649b070eea8bed9e"
dependencies = [
"serde",
]
[[package]] [[package]]
name = "sha-1" name = "sha-1"
version = "0.10.1" version = "0.10.1"
@ -2368,9 +2361,6 @@ dependencies = [
"redis", "redis",
"serde", "serde",
"serde_json", "serde_json",
"serde_repr",
"serde_test",
"thiserror",
"tokio", "tokio",
"tracing", "tracing",
"twilight-model", "twilight-model",

View file

@ -11,3 +11,29 @@ members = [
"libs/shared/", "libs/shared/",
"libs/leash/" "libs/leash/"
] ]
[workspace.dependencies]
shared = { path = "libs/shared" }
proto = { path = "libs/proto" }
leash = { path = "libs/leash" }
tokio = { version = "1", features = ["rt-multi-thread"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
hyper = "0.14.23"
anyhow = "1"
tracing = "0.1"
tracing-futures = "0.2"
tracing-opentelemetry = "0.18"
opentelemetry = "0.18"
opentelemetry-http = "0.7"
tikv-jemallocator = "0.5"
criterion = { version = "0.4", features = ["async_tokio"] }
tokio-test = "0.4.2"
tracing-test = "0.2.3"
tracing-subscriber = "0.3.16"
test-log = { version = "*", features = ["trace"] }
env_logger = "0.10.0"

View file

@ -4,30 +4,24 @@ version = "0.1.0"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
shared = { path = "../../libs/shared" } shared = { workspace = true }
proto = { path = "../../libs/proto" } proto = { workspace = true }
leash = { path = "../../libs/leash" } 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" tokio-stream = "0.1.11"
twilight-gateway = { version = "0.14" } twilight-gateway = { version = "0.14" }
twilight-model = "0.14" twilight-model = "0.14"
bytes = "1.3.0" 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" 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] [target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = "0.5" tikv-jemallocator = { workspace = true }

View file

@ -6,39 +6,36 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
shared = { path = "../../libs/shared" } shared = { workspace = true }
proto = { path = "../../libs/proto" } proto = { workspace = true }
leash = { path = "../../libs/leash" } leash = { workspace = true }
tracing-opentelemetry = { workspace = true }
hyper = "0.14" opentelemetry = { workspace = true }
tokio = { version = "1", features = ["rt"] } opentelemetry-http = { workspace = true }
tracing = { workspace = true }
serde = { version = "1.0.8", features = ["derive"] } 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" } 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" tonic = "0.8.3"
tokio-stream = "0.1.11" tokio-stream = "0.1.11"
redis = { version = "0.22.1", features = ["cluster", "connection-manager", "tokio-comp"] } redis = { version = "0.22.1", features = ["cluster", "connection-manager", "tokio-comp"] }
[dev-dependencies] [dev-dependencies]
criterion = { version = "0.4", features = ["async_tokio"] } criterion = { workspace = true }
tokio-test = "*" tokio-test = { workspace = true }
tracing-test = "0.2.3" tracing-test = { workspace = true }
tracing-subscriber = "*" tracing-subscriber = { workspace = true }
env_logger = "*" test-log = { workspace = true }
test-log = { version = "0.2.11", features = ["log", "trace"] } env_logger = { workspace = true }
[target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = { workspace = true }
[[bench]] [[bench]]
name = "bucket" name = "bucket"
harness = false harness = false
[target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = "0.5"

View file

@ -6,30 +6,30 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
shared = { path = "../../libs/shared" } shared = { workspace = true }
proto = { path = "../../libs/proto" } proto = { workspace = true }
leash = { path = "../../libs/leash" } 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" futures-util = "0.3.17"
hyper-rustls = "0.23.2" hyper-rustls = "0.23.2"
lazy_static = "1.4.0" lazy_static = "1.4.0"
xxhash-rust = { version = "0.8.2", features = ["xxh32"] } xxhash-rust = { version = "0.8.2", features = ["xxh32"] }
twilight-http-ratelimiting = { git = "https://github.com/MatthieuCoder/twilight.git" } twilight-http-ratelimiting = { git = "https://github.com/MatthieuCoder/twilight.git" }
tracing = "0.1.37"
anyhow = "1.0.68"
hashring = "0.3.0" hashring = "0.3.0"
tonic = "0.8.3" tonic = "0.8.3"
tokio-stream = "0.1.11" tokio-stream = "0.1.11"
dns-lookup = "1.0.8" 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] [target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = "0.5" tikv-jemallocator = { workspace = true }

View file

@ -1,6 +1,6 @@
use anyhow::{bail, Context}; use anyhow::{bail, Context};
use futures_util::FutureExt; use futures_util::future::FutureExt;
use http::{ use hyper::http::{
header::{AUTHORIZATION, CONNECTION, HOST, TRANSFER_ENCODING, UPGRADE}, header::{AUTHORIZATION, CONNECTION, HOST, TRANSFER_ENCODING, UPGRADE},
HeaderValue, Method as HttpMethod, Request, Response, Uri, HeaderValue, Method as HttpMethod, Request, Response, Uri,
}; };

View file

@ -4,20 +4,19 @@ version = "0.1.0"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
hyper = "0.14" tokio = { workspace = true }
tokio = { version = "1", features = ["rt"] } shared = { workspace = true }
shared = { path = "../../libs/shared" } proto = { workspace = true }
proto = { path = "../../libs/proto" } leash = { workspace = true }
leash = { path = "../../libs/leash" } tracing = { workspace = true }
tracing = "0.1.37" serde = { workspace = true }
serde_json = { workspace = true }
serde = { version = "1.0.8", features = ["derive"] } hyper = { workspace = true }
serde_json = { version = "1.0" } anyhow = { workspace = true }
hex = "0.4.3" hex = "0.4.3"
ed25519-dalek = "1" ed25519-dalek = "1"
twilight-model = { version = "0.14" } twilight-model = { version = "0.14" }
anyhow = "1.0.68"
async-nats = "0.26.0" async-nats = "0.26.0"

View file

@ -6,14 +6,14 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
shared = { path = "../shared" } shared = { workspace = true }
anyhow = "1.0.68" anyhow = { workspace = true }
tokio = { version = "1.23.1", features = ["rt", "signal"] } tokio = { workspace = true }
serde = "1.0.152" serde = { workspace = true }
opentelemetry = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing = { workspace = true }
tracing-log = { version = "0.1.3", features = ["env_logger"] } tracing-log = { version = "0.1.3", features = ["env_logger"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] } 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"] } opentelemetry-otlp = { version = "0.11.0", features = ["metrics"] }

View file

@ -4,23 +4,16 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
serde = { version = "1.0.8", features = ["derive"] } serde = { workspace = true }
serde_json = { version = "1.0" } serde_json = { workspace = true }
serde_repr = "0.1" opentelemetry = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }
config = { version = "0.13", default-features = false, features = ["json", "yaml-rust", "ini"] } 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"] } 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" twilight-model = "0.14"
thiserror = "1.0.38"
anyhow = "1.0.68" anyhow = "1.0.68"
serde_test = "1.0.152"
tracing = "0.1.37"
opentelemetry-otlp = "0.11.0" opentelemetry-otlp = "0.11.0"
opentelemetry = "0.18.0"