async-tungstenite VS tokio-tungstenite

Compare async-tungstenite vs tokio-tungstenite and see what are their differences.

async-tungstenite

Async binding for Tungstenite, the Lightweight stream-based WebSocket implementation (by sdroege)

tokio-tungstenite

Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation (by snapview)
Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
async-tungstenite tokio-tungstenite
1 3
285 653
- 9.0%
6.0 6.4
about 2 months ago about 2 months ago
Rust Rust
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

async-tungstenite

Posts with mentions or reviews of async-tungstenite. We have used some of these posts to build our list of alternatives and similar projects.
  • generic purpose library in rust
    1 project | reddit.com/r/rust | 21 Mar 2021
    You can also mix them a bit. The library tungstenite is implemented like this, and allows async-tungstenite to reuse the same logic but in a non-blocking manner. You have the API of the second option, but if a write call returns WouldBlock, you return to the caller and allow them to continue when the buffer is flushed. This can get complicated saving state though (e.g. whether it's currently doing authentication, uploading a file, etc.), but see my note below about Rust's async/await.

tokio-tungstenite

Posts with mentions or reviews of tokio-tungstenite. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-02.

What are some alternatives?

When comparing async-tungstenite and tokio-tungstenite you can also consider the following projects:

polars - Fast multi-threaded DataFrame library in Rust | Python | Node.js

warp - A super-easy, composable, web server framework for warp speeds.

async-std - Async version of the Rust standard library

delay-timer - Time-manager of delayed tasks. Like crontab, but synchronous asynchronous tasks are possible scheduling, and dynamic add/cancel/remove is supported.

another-rust-load-balancer - A load balancer with support for different middlewares and load balancing strategies, based on hyper and tokio

tangle - Deprecated - Use https://github.com/alexcrichton/futures-rs instead

reqwest - An easy and powerful Rust HTTP Client

gtk-rs-core - Provides Rust bindings for Gnome libraries

axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper