Skip to content

Commit

Permalink
chore: bump deps (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore authored Oct 20, 2024
1 parent c5e8ae2 commit 817d20d
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 41 deletions.
47 changes: 23 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,31 @@ default-members = ["crates/*"]
resolver = "2"

[workspace.dependencies]
bytes = { version = "1.4.0", features = ["serde"] }
futures-core = "0.3.30"
futures-util = { version = "0.3.30", default-features = false, features = [
"std",
] }
tokio = "1.35.0"
tokio-tungstenite = "0.24.0"
serde = { version = "1.0.193", features = ["derive"] }
smallvec = { version = "1.13.1", features = ["union"] }
serde_json = "1.0.108"
tower = { version = "0.4.13", default-features = false }
http = "1.0.0"
http-body = "1.0.0"
http-body-util = { version = "0.1.0" }
thiserror = "1.0.40"
tracing = "0.1.37"
itoa = "1.0.10"
hyper-util.version = "0.1.1"
hyper = "1.0.3"
pin-project-lite = "0.2.13"
matchit = "0.8.2"
bytes = { version = "1.7", features = ["serde"] }
futures-core = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["std"] }
tokio = "1.40"
tokio-tungstenite = "0.24"
serde = { version = "1.0", features = ["derive"] }
smallvec = { version = "1.13", features = ["union"] }
serde_json = "1.0"
tower-layer = "0.3"
tower-service = "0.3"
http = "1.1"
http-body = "1.0"
http-body-util = "0.1"
thiserror = "1.0"
tracing = "0.1"
itoa = "1.0"
hyper-util.version = "0.1"
hyper = "1.5"
pin-project-lite = "0.2"
matchit = "0.8"

# Dev deps
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
criterion = { version = "0.5.1", features = [
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
criterion = { version = "0.5", features = [
"rayon",
"html_reports",
], default-features = false }
axum = "0.7.2"
axum = "0.7"
11 changes: 6 additions & 5 deletions crates/engineioxide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,25 @@ serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["rt", "time"] }
tower.workspace = true
tower-service.workspace = true
tower-layer.workspace = true
hyper.workspace = true
tokio-tungstenite.workspace = true
http-body-util.workspace = true
pin-project-lite.workspace = true
smallvec.workspace = true
hyper-util = { workspace = true, features = ["tokio"] }

base64 = "0.22.0"
rand = "0.8.5"
base64 = "0.22"
rand = "0.8"

# Tracing
tracing = { workspace = true, optional = true }

# Engine.io V3 payload
itoa = { workspace = true, optional = true }
memchr = { version = "2.5.0", optional = true }
unicode-segmentation = { version = "1.10.1", optional = true }
memchr = { version = "2.7", optional = true }
unicode-segmentation = { version = "1.12", optional = true }

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "parking_lot"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/engineioxide/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//! // Spawn the axum server
//! ```
use std::sync::Arc;
use tower::Layer;
use tower_layer::Layer;

use crate::{config::EngineIoConfig, handler::EngineIoHandler, service::EngineIoService};

Expand Down
2 changes: 1 addition & 1 deletion crates/engineioxide/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use http::{Request, Response};
use http_body::Body;
use http_body_util::Empty;
use hyper::service::Service as HyperSvc;
use tower::Service as TowerSvc;
use tower_service::Service as TowerSvc;

use crate::{
body::ResponseBody, config::EngineIoConfig, engine::EngineIo, handler::EngineIoHandler,
Expand Down
2 changes: 1 addition & 1 deletion crates/parser-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ socketioxide-core = { version = "0.14.1", path = "../socketioxide-core" }

[dev-dependencies]
criterion.workspace = true
rmpv = { version = "1.3.0", features = ["with-serde"] }
rmpv = { version = "1.3", features = ["with-serde"] }

[features]
fuzzing = ["socketioxide-core/fuzzing"]
Expand Down
3 changes: 1 addition & 2 deletions crates/parser-msgpack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ license.workspace = true

[dependencies]
bytes.workspace = true
itoa.workspace = true
serde.workspace = true
rmp = "0.8"
rmp-serde = "1.3.0"
rmp-serde = "1.3"
socketioxide-core = { version = "0.14.1", path = "../socketioxide-core" }

[dev-dependencies]
Expand Down
6 changes: 4 additions & 2 deletions crates/socketioxide/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ futures-core.workspace = true
futures-util.workspace = true
tokio = { workspace = true, features = ["rt", "time"] }
serde.workspace = true
tower.workspace = true
tower-service.workspace = true
tower-layer.workspace = true
http.workspace = true
http-body.workspace = true
thiserror.workspace = true
Expand All @@ -31,6 +32,8 @@ hyper.workspace = true
matchit.workspace = true
pin-project-lite.workspace = true

rustversion = "1.0.18"

# Parsers
socketioxide-parser-common = { path = "../parser-common" }
socketioxide-parser-msgpack = { path = "../parser-msgpack", optional = true }
Expand All @@ -40,7 +43,6 @@ tracing = { workspace = true, optional = true }

# State
state = { version = "0.6.0", optional = true }
rustversion = "1.0.17"

[features]
v4 = ["engineioxide/v3"]
Expand Down
2 changes: 1 addition & 1 deletion crates/socketioxide/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! ```
use std::sync::Arc;

use tower::Layer;
use tower_layer::Layer;

use crate::{
adapter::{Adapter, LocalAdapter},
Expand Down
2 changes: 1 addition & 1 deletion crates/socketioxide/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use std::{
sync::Arc,
task::{Context, Poll},
};
use tower::Service as TowerSvc;
use tower_service::Service as TowerSvc;

use crate::{
adapter::{Adapter, LocalAdapter},
Expand Down
4 changes: 2 additions & 2 deletions e2e/socketioxide/socketioxide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use hyper_util::rt::TokioIo;
use rmpv::Value;
use socketioxide::{
extract::{AckSender, Data, SocketRef},
ParserConfig, SocketIo,
SocketIo,
};
use tokio::net::TcpListener;
use tracing::{info, Level};
Expand Down Expand Up @@ -63,7 +63,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

#[cfg(feature = "msgpack")]
{
builder = builder.with_parser(ParserConfig::msgpack());
builder = builder.with_parser(socketioxide::ParserConfig::msgpack());
};

let (svc, io) = builder.build_svc();
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ futures = "0.3.27"
tokio = "1.35.0"
serde = { version = "1.0.193", features = ["derive"] }
rmpv = { version = "1.3.0", features = ["with-serde"] }
tower = { version = "0.4.13", default-features = false }
tower = { version = "0.5.0", default-features = false }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
axum = "0.7.5"
Expand Down

0 comments on commit 817d20d

Please sign in to comment.