You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since snapview/tungstenite-rs@c21281a, support for url::Url in the tungstenite library has become an optional feature that is disabled by default. Since message-io currently relies on tungstenite's default trait implementations for url::Url, this change causes a build error with tungstenite >= v0.22.0:
error[E0277]: the trait bound `url::Url: IntoClientRequest` is not satisfied
--> /home/USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/message-io-0.18.1/src/adapters/ws.rs:199:38
|
199 | match ws_connect(url, stream) {
| ---------- ^^^ the trait `IntoClientRequest` is not implemented for `url::Url`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `IntoClientRequest`:
httparse::Request<'h, 'b>
ClientRequestBuilder
tungstenite::http::Request<()>
Uri
std::string::String
&'a str
&'a std::string::String
&'a Uri
note: required by a bound in `client`
--> /home/USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tungstenite-0.23.0/src/client.rs:176:10
The problem can be solved either by limiting tungstenite to versions < 0.22.0, or by requiring a version >= 0.22.0 and explicitly enabling the url feature.
The text was updated successfully, but these errors were encountered:
Since snapview/tungstenite-rs@c21281a, support for
url::Url
in the tungstenite library has become an optional feature that is disabled by default. Sincemessage-io
currently relies on tungstenite's default trait implementations forurl::Url
, this change causes a build error with tungstenite >= v0.22.0:The problem can be solved either by limiting tungstenite to versions < 0.22.0, or by requiring a version >= 0.22.0 and explicitly enabling the url feature.
The text was updated successfully, but these errors were encountered: