# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.67.0"
name = "socketioxide"
version = "0.7.2"
authors = ["Théodore Prévot <"]
description = "Socket IO server implementation in rust as a Tower Service."
homepage = "https://github.com/totodore/socketioxide"
readme = "README.md"
keywords = [
    "socketio",
    "tower",
    "axum",
    "hyper",
    "websocket",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming::websocket",
]
license = "MIT"
repository = "https://github.com/totodore/socketioxide"

[package.metadata.docs.rs]
features = [
    "v4",
    "extensions",
    "hyper-v1",
    "tracing",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[[bench]]
name = "packet_encode"
path = "benches/packet_encode.rs"
harness = false

[[bench]]
name = "packet_decode"
path = "benches/packet_decode.rs"
harness = false

[[bench]]
name = "itoa_bench"
path = "benches/itoa_bench.rs"
harness = false

[dependencies.dashmap]
version = "5.4.0"
optional = true

[dependencies.engineioxide]
version = "0.7.2"

[dependencies.futures]
version = "0.3.27"

[dependencies.http]
version = "0.2.11"

[dependencies.http-body]
version = "0.4.5"

[dependencies.http-body-v1]
version = "1.0.0-rc.2"
optional = true
package = "http-body"

[dependencies.hyper-v1]
version = "1.0.0-rc.4"
features = [
    "server",
    "http1",
    "http2",
]
optional = true
package = "hyper"

[dependencies.itoa]
version = "1.0.9"

[dependencies.serde]
version = "1.0.193"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.108"

[dependencies.thiserror]
version = "1.0.40"

[dependencies.tokio]
version = "1.34.0"
features = ["rt"]

[dependencies.tower]
version = "0.4.13"
default-features = false

[dependencies.tracing]
version = "0.1.37"
optional = true

[dev-dependencies.axum]
version = "0.6.20"

[dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]

[dev-dependencies.hyper]
version = "0.14.25"
features = [
    "http1",
    "http2",
    "server",
    "stream",
    "runtime",
    "client",
]

[dev-dependencies.salvo]
version = "0.58.2"
features = ["tower-compat"]

[dev-dependencies.tokio]
version = "1.34.0"
features = [
    "macros",
    "parking_lot",
    "rt-multi-thread",
]

[dev-dependencies.tokio-tungstenite]
version = "0.20.0"

[dev-dependencies.tracing-subscriber]
version = "0.3.18"
features = ["env-filter"]

[dev-dependencies.warp]
version = "0.3.6"

[features]
extensions = ["dep:dashmap"]
hyper-v1 = [
    "engineioxide/hyper-v1",
    "dep:http-body-v1",
    "dep:hyper-v1",
]
test-utils = []
tracing = [
    "dep:tracing",
    "engineioxide/tracing",
]
v4 = ["engineioxide/v3"]
