ws protocol: make tungstenite integration optional feature

This commit is contained in:
Joakim Frostegård 2024-01-29 19:49:05 +01:00
parent fee465d205
commit 3c906f48ee
4 changed files with 9 additions and 1 deletions

View file

@ -12,6 +12,10 @@ rust-version.workspace = true
readme = "./README.md"
[features]
default = ["tungstenite"]
tungstenite = ["dep:tungstenite"]
[lib]
name = "aquatic_ws_protocol"
@ -26,7 +30,7 @@ hashbrown = { version = "0.14", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
simd-json = "0.13"
tungstenite = "0.21"
tungstenite = { version = "0.21", optional = true }
[dev-dependencies]
criterion = "0.5"