tokio-tungstenite icon indicating copy to clipboard operation
tokio-tungstenite copied to clipboard

Make handshake dependencies optional.

Open Icelk opened this issue 3 years ago • 3 comments

This is the PR I promised in snapview/tungstenite-rs#296. It requires snapview/tungstenite-rs#300 to be merged and released before we can release this.

This adds a cargo feature named handshake which is enabled by default. Disabling it removes the handshake feature of tungstenite.

Icelk avatar Aug 29 '22 19:08 Icelk

I can confirm this works as expected. I disabled the handshake feature and handled that myself.

Icelk avatar Aug 29 '22 19:08 Icelk

The CI is failing because I added tungstenite as a path dependency for development. Should I add it as a git reference, so the CI succeeds?

Icelk avatar Aug 29 '22 19:08 Icelk

Thanks for the changes! It's ok, let's wait until we merge the tungstenite and release it, so that we can merge this one and release it as well.

daniel-abramov avatar Aug 29 '22 19:08 daniel-abramov

Great! Thanks!

Icelk avatar Nov 28 '22 23:11 Icelk

Just a reminder: should the docs in README be updated?

Icelk avatar Nov 28 '22 23:11 Icelk

Possibly. We did not document the connect feature though. But perhaps it makes sense to document both connect and handshake.

daniel-abramov avatar Nov 28 '22 23:11 daniel-abramov