-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (44 loc) · 1.43 KB
/
Cargo.toml
File metadata and controls
52 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "rustapi-ws"
description = "WebSocket support for RustAPI - Real-time bidirectional communication"
documentation = "https://docs.rs/rustapi-ws"
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["web", "framework", "api", "websocket", "real-time"]
categories = ["web-programming::http-server", "web-programming::websocket"]
rust-version.workspace = true
readme = "README.md"
[dependencies]
# Core dependencies
rustapi-core = { workspace = true }
rustapi-openapi = { workspace = true }
# WebSocket implementation
tokio-tungstenite = "0.24"
tungstenite = "0.24"
# Async runtime
tokio = { workspace = true, features = ["sync", "macros", "rt"] }
futures-util = { workspace = true }
# HTTP types
http = { workspace = true }
http-body-util = { workspace = true }
bytes = { workspace = true }
hyper = { workspace = true, features = ["server", "http1"] }
hyper-util = { workspace = true, features = ["tokio"] }
# Serialization (optional, for JSON messages)
serde = { workspace = true }
serde_json = { workspace = true }
# Utilities
thiserror = { workspace = true }
tracing = { workspace = true }
pin-project-lite = { workspace = true }
async-trait = { workspace = true }
url = "2.5"
# SHA-1 for WebSocket handshake
sha1 = "0.11"
base64 = "0.22"
[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
proptest = "1.4"