subduction_websocket 0.7.0

WebSocket transport layer for the Subduction sync protocol
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.90"
name = "subduction_websocket"
version = "0.7.0"
authors = [
    "Alex Good <alex@patternist.xyz>",
    "Brooklyn Zelenka <hello@brooklynzelenka.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebSocket transport layer for the Subduction sync protocol"
readme = "README.md"
keywords = [
    "websocket",
    "sync",
    "subduction",
]
categories = ["web-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/inkandswitch/subduction"

[features]
default = ["std"]
futures-timer = [
    "std",
    "dep:futures-timer",
]
std = [
    "async-channel/std",
    "async-lock/std",
    "blake3/std",
    "futures/std",
    "futures-util/io",
    "futures-util/std",
    "rand/std",
    "rand/std_rng",
    "sedimentree_core/std",
    "subduction_core/system_time",
    "thiserror/std",
    "tracing/std",
]
tokio_base = [
    "dep:tokio",
    "dep:tokio-util",
    "futures-timer",
    "std",
]
tokio_client = [
    "tokio_client_any",
    "async-tungstenite/tokio-native-tls",
]
tokio_client_any = ["tokio_base"]
tokio_client_rustls = [
    "tokio_client_any",
    "async-tungstenite/tokio-rustls-native-certs",
]
tokio_server = [
    "tokio_server_any",
    "async-tungstenite/tokio-native-tls",
]
tokio_server_any = ["tokio_base"]
tokio_server_rustls = [
    "tokio_server_any",
    "async-tungstenite/tokio-rustls-native-certs",
]

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

[[test]]
name = "round_trip"
path = "tests/round_trip.rs"
required-features = [
    "tokio_server",
    "tokio_client",
]

[[test]]
name = "tokio_tests"
path = "tests/tokio_tests.rs"
required-features = [
    "tokio_server",
    "tokio_client",
]

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

[dependencies.async-channel]
version = "2.5"
default-features = false

[dependencies.async-lock]
version = "3.4"
default-features = false

[dependencies.async-tungstenite]
version = "0.31.0"

[dependencies.blake3]
version = "1.8"
default-features = false

[dependencies.future_form]
version = "0.3.0"

[dependencies.futures]
version = "0.3.31"
features = [
    "alloc",
    "async-await",
]
default-features = false

[dependencies.futures-timer]
version = "3.0"
optional = true

[dependencies.futures-util]
version = "0.3.31"
features = [
    "alloc",
    "async-await",
]
default-features = false

[dependencies.rand]
version = "0.8.5"
default-features = false

[dependencies.sedimentree_core]
version = "0.6.0"
default-features = false

[dependencies.subduction_core]
version = "0.7.0"
default-features = false

[dependencies.subduction_crypto]
version = "0.2.1"
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.tokio]
version = "1.46"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7.16"
optional = true

[dependencies.tracing]
version = "0.1.41"
default-features = false

[dependencies.tungstenite]
version = "0.27"

[dev-dependencies.arbitrary]
version = "1.4"

[dev-dependencies.criterion]
version = "0.5"
default-features = false

[dev-dependencies.criterion_pprof]
version = "0.15"
features = [
    "criterion",
    "flamegraph",
]
default-features = false
package = "pprof"

[dev-dependencies.eyre]
version = "0.6"

[dev-dependencies.rand]
version = "0.8.5"
features = ["std_rng"]
default-features = false

[dev-dependencies.sedimentree_core]
version = "0.6.0"
features = [
    "arbitrary",
    "serde",
    "std",
]
default-features = false

[dev-dependencies.subduction_core]
version = "0.7.0"
features = ["test_utils"]
default-features = false

[dev-dependencies.testresult]
version = "0.4.1"

[dev-dependencies.tokio]
version = "1.46"
features = [
    "macros",
    "net",
    "rt-multi-thread",
    "sync",
]

[dev-dependencies.tokio-test]
version = "0.4.4"

[dev-dependencies.tracing-subscriber]
version = "0.3.2"
features = [
    "fmt",
    "env-filter",
    "std",
]
default-features = false

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
fallible_impl_from = "warn"
fn_params_excessive_bools = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
multiple_crate_versions = "allow"
must_use_candidate = "warn"
panic = "warn"
todo = "warn"
unneeded_field_pattern = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

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

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

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

[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_extern_crates = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.let_underscore]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1