Skip to content

Commit

Permalink
Fix Tungstenite build error caused by the URL feature (#174)
Browse files Browse the repository at this point in the history
Since tungstenite 0.22.0, support for url::Url has become an optional feature, which breaks message-io builds.
This commit updates tungstenite to versions greater than or equal to 0.22.0 and requires the URL feature to fix builds.
  • Loading branch information
TechnoPorg authored Jun 10, 2024
1 parent 0781402 commit 77858e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ crossbeam-utils = "0.8"
log = "0.4"
strum = { version = "0.24", features = ["derive"] }
socket2 = { version = "0.5.1", features = ["all"], optional = true}
tungstenite = { version = ">=0.20.1", optional = true }
tungstenite = { version = ">=0.22.0", features = ["url"], optional = true }
url = { version = "2.2", optional = true }
integer-encoding = "3.0.2"
lazy_static = "1.4.0"
Expand Down

1 comment on commit 77858e5

@mooman219
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you I just ran into this! You can also delete your cargo.lock and include tungstenite as a dep in the meantime

tungstenite = { version = ">=0.22.0", features = ["url"] }

Please sign in to comment.