32 lines
1.2 KiB
TOML
32 lines
1.2 KiB
TOML
[package]
|
|
name = "circle_client_ws"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
uuid = { version = "1.6", features = ["v4", "serde", "js"] }
|
|
log = "0.4"
|
|
futures-channel = { version = "0.3", features = ["sink"] } # For mpsc
|
|
futures-util = { version = "0.3", features = ["sink"] } # For StreamExt, SinkExt
|
|
thiserror = "1.0"
|
|
async-trait = "0.1" # May be needed for abstracting WS connection
|
|
|
|
# WASM-specific dependencies
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
gloo-net = { version = "0.4.0", features = ["websocket"] }
|
|
wasm-bindgen-futures = "0.4"
|
|
gloo-console = "0.3.0" # For wasm logging if needed, or use `log` with wasm_logger
|
|
|
|
# Native-specific dependencies
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tokio-tungstenite = { version = "0.23.0", features = ["native-tls"] }
|
|
tokio = { version = "1", features = ["rt", "macros"] } # For tokio::spawn on native
|
|
url = "2.5.0" # For native WebSocket connection
|
|
|
|
[dev-dependencies]
|
|
# For examples within this crate, if any, or for testing
|
|
env_logger = "0.10"
|
|
# tokio = { version = "1", features = ["full"] } # If examples need full tokio runtime
|