actioncable-client 2.0.2

A client for Rails' Action Cable: one connection, many channel subscriptions, reconnects on its own
Documentation
# 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"
rust-version = "1.88"
name = "actioncable-client"
version = "2.0.2"
build = false
include = [
    "src/**",
    "README.md",
    "LICENSE",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A client for Rails' Action Cable: one connection, many channel subscriptions, reconnects on its own"
homepage = "https://github.com/basecamp/actioncable-client"
documentation = "https://docs.rs/actioncable-client"
readme = "README.md"
keywords = [
    "actioncable",
    "rails",
    "websocket",
    "client",
    "37signals",
]
categories = [
    "web-programming::websocket",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/basecamp/actioncable-client"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["websocket"]
test-support = []
websocket = [
    "dep:futures-util",
    "dep:rustls",
    "dep:tokio-tungstenite",
]

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

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

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

[dependencies.getrandom]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
    "logging",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"
features = ["raw_value"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "sync",
    "time",
]

[dependencies.tokio-tungstenite]
version = "0.30"
features = [
    "connect",
    "rustls-tls-native-roots",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.tokio]
version = "1"
features = [
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
    "time",
]

[lints.clippy]
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
return_self_not_must_use = "allow"
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cargo]
level = "allow"
priority = -1

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]