From 6f43e44745bb8a3f57ac9c7aa66ef9ad049f88a8 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Fri, 5 Jul 2024 02:16:10 +0300 Subject: [PATCH] chore: Add new dependencies for websocket Signed-off-by: Awiteb --- Cargo.lock | 35 +++++++++++++++++++++++++++++++++++ crates/oxidetalis/Cargo.toml | 4 ++++ 2 files changed, 39 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 3e48080..8c8c1fc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -626,6 +626,16 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + [[package]] name = "crossbeam-epoch" version = "0.9.18" @@ -958,6 +968,7 @@ checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" dependencies = [ "futures-channel", "futures-core", + "futures-executor", "futures-io", "futures-sink", "futures-task", @@ -1895,19 +1906,23 @@ version = "0.1.0" dependencies = [ "chrono", "derive-new", + "futures", "log", "logcall", + "once_cell", "oxidetalis_config", "oxidetalis_core", "oxidetalis_entities", "oxidetalis_migrations", "pretty_env_logger", + "rayon", "salvo", "sea-orm", "serde", "serde_json", "thiserror", "tokio", + "uuid", ] [[package]] @@ -2258,6 +2273,26 @@ dependencies = [ "bitflags 2.6.0", ] +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + [[package]] name = "redox_syscall" version = "0.4.1" diff --git a/crates/oxidetalis/Cargo.toml b/crates/oxidetalis/Cargo.toml index 7a59970..f3a5764 100644 --- a/crates/oxidetalis/Cargo.toml +++ b/crates/oxidetalis/Cargo.toml @@ -23,9 +23,13 @@ thiserror = { workspace = true } chrono = { workspace = true } salvo = { version = "0.68.2", features = ["rustls", "affix", "logging", "oapi", "rate-limiter", "websocket"] } tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] } +uuid = { version = "1.9.1", default-features = false, features = ["v4"] } derive-new = "0.6.0" pretty_env_logger = "0.5.0" serde_json = "1.0.117" +once_cell = "1.19.0" +futures = "0.3.30" +rayon = "1.10.0" [lints.rust] unsafe_code = "deny"