Skip to content
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion crates/socketioxide-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,32 @@ license.workspace = true
readme.workspace = true

[features]
remote-adapter = []
remote-adapter = [
"dep:pin-project-lite",
"dep:futures-util",
"dep:tokio",
"dep:tracing",
]

[dependencies]
bytes.workspace = true
engineioxide-core = { version = "0.2", path = "../engineioxide-core" }
serde.workspace = true
thiserror.workspace = true
futures-core.workspace = true
futures-util = { workspace = true, optional = true }

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add default-features = false + only pick the features needed. Same goes for the other added deps if they have features.

pin-project-lite = { workspace = true, optional = true }
smallvec = { workspace = true, features = ["serde"] }
tokio = { workspace = true, features = ["sync", "time"], optional = true }
tracing = { workspace = true, optional = true }

[target."cfg(fuzzing)".dependencies]
arbitrary = { version = "1.4.2", features = ["derive"] }

[dev-dependencies]
serde_json.workspace = true
rmp-serde.workspace = true
tokio = { workspace = true, features = ["macros", "rt"] }

[lints]
workspace = true
2 changes: 2 additions & 0 deletions crates/socketioxide-core/src/adapter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ use errors::{AdapterError, BroadcastError, SocketError};
pub mod errors;
#[cfg(feature = "remote-adapter")]
pub mod remote_packet;
#[cfg(feature = "remote-adapter")]
pub mod stream;
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

/// A room identifier
pub type Room = Cow<'static, str>;
Expand Down
Loading