wse-client 3.2.0

Rust client for WSE servers, natively and in the browser: topics with message recovery, reconnects, MessagePack, end-to-end encryption and signed messages.
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.95"
name = "wse-client"
version = "3.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for WSE servers, natively and in the browser: topics with message recovery, reconnects, MessagePack, end-to-end encryption and signed messages."
readme = "README.md"
keywords = [
    "websocket",
    "pubsub",
    "realtime",
    "tokio",
    "client",
]
categories = [
    "network-programming",
    "web-programming::websocket",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/silvermpx/wse"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]

[features]
aws-lc = [
    "dep:wse",
    "dep:zeroize",
    "dep:rustls",
    "dep:webpki-roots",
    "dep:base64",
    "rustls/aws_lc_rs",
    "rustls/prefer-post-quantum",
    "tokio-tungstenite/rustls-tls-webpki-roots",
]
bridge = ["aws-lc"]
default = ["aws-lc"]
fips = [
    "aws-lc",
    "wse/fips",
    "rustls/fips",
]
native = [
    "aws-lc",
    "dep:tokio-util",
    "tokio/rt-multi-thread",
    "dep:rustls-platform-verifier",
    "dep:jni",
]

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

[[example]]
name = "chat_client"
path = "examples/chat_client.rs"

[[example]]
name = "server"
path = "examples/server.rs"

[[test]]
name = "bridge"
path = "tests/bridge.rs"
required-features = ["bridge"]

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

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

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

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

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

[[test]]
name = "native"
path = "tests/native.rs"
required-features = ["native"]

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

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

[[test]]
name = "system_trust"
path = "tests/system_trust.rs"
required-features = ["native"]

[dependencies.base64]
version = "0.23"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.bytestring]
version = "1"

[dependencies.flate2]
version = "1.1.11"
features = ["zlib-rs"]
default-features = false

[dependencies.foldhash]
version = "0.2"

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

[dependencies.memchr]
version = "2"

[dependencies.rmp]
version = "0.8.15"

[dependencies.rmp-serde]
version = "1.3.1"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.web-time]
version = "1"

[dependencies.wse]
version = "=3.2.0"
optional = true
default-features = false

[dependencies.zeroize]
version = "1"
optional = true

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies.sha2]
version = "0.11"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.fastrand]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
    "logging",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls-platform-verifier]
version = "0.7.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.54.1"
features = [
    "rt",
    "net",
    "time",
    "sync",
    "macros",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.30.0"
features = [
    "connect",
    "handshake",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-util]
version = "0.7"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.webpki-roots]
version = "1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rcgen]
version = "0.14.10"
features = [
    "aws_lc_rs",
    "pem",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.54.1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "io-std",
    "io-util",
]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio-rustls]
version = "0.26.4"
features = [
    "aws_lc_rs",
    "tls12",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.wse]
version = "=3.2.0"
features = ["server"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
version = "0.3"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1.54.1"
features = [
    "sync",
    "macros",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "BinaryType",
    "CloseEvent",
    "DomException",
    "DomStringList",
    "Event",
    "IdbDatabase",
    "IdbFactory",
    "IdbKeyRange",
    "IdbObjectStore",
    "IdbObjectStoreParameters",
    "IdbOpenDbRequest",
    "IdbRequest",
    "IdbTransaction",
    "IdbTransactionMode",
    "MessageEvent",
    "WebSocket",
]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.fastrand]
version = "2"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22.4"
optional = true
default-features = false