Skip to content

Commit

Permalink
Add permessage-deflate support
Browse files Browse the repository at this point in the history
  • Loading branch information
kazk committed Jan 7, 2023
1 parent 05353b7 commit 5a5069e
Show file tree
Hide file tree
Showing 8 changed files with 339 additions and 299 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
target
Cargo.lock
autobahn/client/
autobahn/server/
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"]
rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"]
__rustls-tls = ["rustls", "tokio-rustls", "stream", "tungstenite/__rustls-tls", "webpki", "handshake"]
stream = []
deflate = ["tungstenite/deflate"]

[dependencies]
log = "0.4"
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
tokio = { version = "1.0.0", default-features = false, features = ["io-util"] }

[dependencies.tungstenite]
version = "0.18.0"
# version = "0.18.0"
git = "https://github.com/kazk/tungstenite-rs"
branch = "feature/permessage-deflate"
default-features = false

[dependencies.native-tls-crate]
Expand Down Expand Up @@ -73,11 +76,11 @@ env_logger = "0.9"

[[example]]
name = "autobahn-client"
required-features = ["connect"]
required-features = ["connect", "deflate"]

[[example]]
name = "autobahn-server"
required-features = ["handshake"]
required-features = ["handshake", "deflate"]

[[example]]
name = "client"
Expand Down
Loading

0 comments on commit 5a5069e

Please sign in to comment.