GithubHelp home page GithubHelp logo

0.6 release? about tokio-tungstenite HOT 13 CLOSED

seanmonstar avatar seanmonstar commented on July 16, 2024 3
0.6 release?

from tokio-tungstenite.

Comments (13)

daniel-abramov avatar daniel-abramov commented on July 16, 2024 1

We thought about the release with the current state from master, but there is still one thing we're waiting for: tokio-tls. There is a patch in Cargo.toml of tokio-tungstenite, without this patch the crate won't compile due to the tokio-tls dependency which currently uses the old version of native-tls. We hope that tokio-tls will get released soon with the new native-tls dependency (tokio-rs/tokio-tls#43), at that point we can remove the [temporary] patch from our Cargo.toml and release a new version of tokio-tungstenite.

from tokio-tungstenite.

agalakhov avatar agalakhov commented on July 16, 2024

Yes. It was actually planned for the previous week but this was not done due to other urgent tasks.
Do you have any special wishes for 0.6? Any functionality you're missing?

from tokio-tungstenite.

seanmonstar avatar seanmonstar commented on July 16, 2024

Not that I can think of for this specific library.

If asking, in tungstenite proper, I might suggest that Message uses something like Bytes instead of Vec<u8> or String, to reduce the amount of allocations of copies needed. But I'd suggest that just for performance, I'm not exposing the actual Message enum to users, specifically to allow the internal buffer type to be changed without affecting them.

from tokio-tungstenite.

ParadoxSpiral avatar ParadoxSpiral commented on July 16, 2024

When do you plan to release the new version to crates.io?
I've switched to this crate from websockets because this is much nicer, but don't want to push the move until it's not a git dep anymore.

from tokio-tungstenite.

zargony avatar zargony commented on July 16, 2024

I'm too using tokio-tungstenite for websocket communication instead of the websocket crate because tokio-tungstenite's is nicer and easier to use.

Speaking of tokio_tls.. What do you think about making the AutoStream type public?
That'd be helpful for working with the resulting websocket item of connect_async. To handle the resulting websocket (e.g. keep it in a struct or pass it to a function), I need to give it's exact type. However, I can't use its type WebSocketStream<AutoStream<S>>, since AutoStream isn't public. So I always end up using the full type WebSocketStream<StreamSwitcher<TcpStream, TlsStream<TcpStream>>>, which also means that I need to add tokio_tls as a direct dependency to get the StreamSwitcher type, which is a little unconvenient.

from tokio-tungstenite.

agalakhov avatar agalakhov commented on July 16, 2024

I even feel that AutoStream should be a separate crate. There are many cases when the same code could either use TLS or not, and this has nothing to do with WebSocket. We had to reinvent many wheels for Tungstenite.

from tokio-tungstenite.

zargony avatar zargony commented on July 16, 2024

In a separate crate or maybe in tokio_tls. However, the name AutoStream could be a little confusing since it sounds like the stream would automatically detect TLS. Maybe something like OptionalTlsStream would be better if used outside of tokio_tungstenite.

from tokio-tungstenite.

agalakhov avatar agalakhov commented on July 16, 2024

Totally agree.

from tokio-tungstenite.

daniel-abramov avatar daniel-abramov commented on July 16, 2024

Or maybe even something more general like StreamType / NetworkStream or something like that.

from tokio-tungstenite.

daniel-abramov avatar daniel-abramov commented on July 16, 2024

UPD. We're not waiting for tokio-rs/tokio-tls#43 anymore. According to the latest information, Carl has suggested to merge the following pull request: tokio-rs/tokio-tls#45.

Once the changes are merged and published, we can use the version of tokio-tls from crates.io.

from tokio-tungstenite.

 avatar commented on July 16, 2024

The PR was merged and tokio-tls 0.2 has been published.

from tokio-tungstenite.

daniel-abramov avatar daniel-abramov commented on July 16, 2024

Yes, I think we're ready for release now.

ping @agalakhov

@zargony the AutoStream changes and other small things might be delivered in the upcoming patch version improvements, unless you want to send a pull request before @agalakhov publishes a release ;)

from tokio-tungstenite.

agalakhov avatar agalakhov commented on July 16, 2024

Version 0.6.0 released.

from tokio-tungstenite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.