# 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 = "2024"
name = "camel-component-ws"
version = "0.18.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSocket component for rust-camel"
homepage = "https://github.com/kennycallado/rust-camel"
documentation = "https://docs.rs/camel-component-ws"
readme = "README.md"
keywords = [
    "camel",
    "integration",
    "messaging",
    "routing",
    "enterprise",
]
categories = [
    "network-programming",
    "asynchronous",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/kennycallado/rust-camel"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
otel = ["dep:camel-otel"]

[lib]
name = "camel_component_ws"
path = "src/lib.rs"

[[test]]
name = "accept_loop_metric_regression"
path = "tests/accept_loop_metric_regression.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"
features = ["ws"]

[dependencies.axum-server]
version = "0.7"
features = ["tls-rustls"]

[dependencies.bytes]
version = "1"

[dependencies.camel-api]
version = "=0.18.0"

[dependencies.camel-auth]
version = "=0.18.0"

[dependencies.camel-component-api]
version = "=0.18.0"

[dependencies.camel-otel]
version = "=0.18.0"
optional = true

[dependencies.dashmap]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.rustls-pemfile]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-rustls]
version = "0.26"

[dependencies.tokio-tungstenite]
version = "0.26"

[dependencies.toml]
version = "1"

[dependencies.tower]
version = "0.5"
features = ["util"]

[dependencies.tracing]
version = "0.1"

[dependencies.tungstenite]
version = "0.26"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.camel-component-api]
version = "=0.18.0"
features = ["test-support"]

[dev-dependencies.tokio-util]
version = "0.7"
features = [
    "rt",
    "io",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "json",
    "env-filter",
]

[lints.clippy]
all = "warn"

[lints.rust]
dead_code = "warn"
unused_imports = "warn"
unused_must_use = "warn"
