[package]
edition = "2024"
rust-version = "1.98.0"
name = "clankerdiff-client"
version = "0.3.1"
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 = "transport_test"
path = "tests/transport_test.rs"
[dependencies.async-channel]
version = "2.5.0"
[dependencies.clankerdiff-core]
version = "0.3.1"
[dependencies.clankerdiff-protocol]
version = "0.3.1"
[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.1"
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.9.5"
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.28"
features = ["rustls-tls-webpki-roots"]
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-net]
version = "0.6"
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"