clankerdiff-client 0.3.2

Renderer-independent local and remote diff client
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.98.0"
name = "clankerdiff-client"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Renderer-independent local and remote diff client"
readme = false
license = "MIT"
repository = "https://github.com/jcarver989/diff"

[features]
default = ["websocket"]
websocket = [
    "dep:tokio-tungstenite",
    "dep:gloo-net",
    "dep:rand",
    "dep:js-sys",
]

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

[[example]]
name = "remote_review"
path = "examples/remote_review.rs"
required-features = ["websocket"]

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

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

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

[dependencies.async-channel]
version = "2.5.0"

[dependencies.clankerdiff-core]
version = "0.3.2"

[dependencies.clankerdiff-protocol]
version = "0.3.2"

[dependencies.futures-util]
version = "0.3.31"
features = ["sink"]

[dependencies.http]
version = "1.3.1"

[dependencies.thiserror]
version = "2.0.20"

[dependencies.tokio]
version = "1.47.1"
features = ["sync"]
default-features = false

[dev-dependencies.clankerdiff-core]
version = "0.3.2"
features = ["test-support"]

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rand]
version = "0.10.2"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.47.1"
features = [
    "rt",
    "time",
    "macros",
    "net",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.29"
features = ["rustls-tls-webpki-roots"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-net]
version = "0.7"
features = ["websocket"]
optional = true
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"
optional = true

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

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

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 0

[lints.clippy.missing_panics_doc]
level = "allow"
priority = 0

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

[lints.rust]
unsafe_code = "forbid"