genemichaels
tungstenite-rs
Our great sponsors
genemichaels | tungstenite-rs | |
---|---|---|
5 | 15 | |
80 | 1,713 | |
- | 3.1% | |
0.0 | 7.1 | |
7 months ago | 4 days ago | |
Rust | Rust | |
ISC License | Apache License 2.0 |
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.
genemichaels
-
Oxlint – written in Rust – 50-100 Times Faster than ESLint
Python and JavaScript have similarly good formatters (as long as your idiot colleagues don't insist on using yapf instead of Black, despite yapf producing non-deterministic output!). In fact I would say Rust is probably behind Prettier in terms of auto formatting. The rustfmt output is less pretty (subjective I know), the devs have made several strange decisions and it seems to be semi-abandoned (maybe partly because the devs were ... shall we say not as friendly and welcoming as the Rust community likes to bleat on about).
There are a couple of alternative formatters:
* https://github.com/andrewbaxter/genemichaels
-
Minimalist Rust formatter as an alternative to rustfmt?
There are alternatives to rustfmt: Prettier Rust and genemichaels
-
The most creative, funny, clever, ridiculous, ... library names!
Gene Michaels, code formatter
-
How do you name your crates?
I think we should all take inspiration from Gene Michaels and just start naming crates after random people.
- Gene Michaels: Alternative Rust code formatter
tungstenite-rs
-
Help with Minimal Websocket Connection
You can start by following tungstenite-rs client example. And since you are connecting to an tls enabled endpoint you should enable tls features. And according to your API's doc it requires you to send serialized json string for requesting message response and you can use serde ande serde_json for serialization. This is a complete example where a hardcode string request:
-
[I made this] – staticPi – websocket forwarder
staticpi, is a websocket forwarding service. Basically, it enables one to keep a Raspberry pi, or any computer, “connected”, in order to send and receive messages to and from any client, without having to deal with a static IP address, open ports on your router, or similar. Built in Rust, using axum, which in turn uses tungestine-rs for the websocket connections, tokio, sqlx, redis-rs and others.
-
What crate to use to make a WebSocket client
There is a client module and client examples. If using tokio, there is tokio-tungstenite on top, which has various client functions.
-
The most creative, funny, clever, ridiculous, ... library names!
tungstenite: "Lightweight stream-based WebSocket implementation. It's formerly WS2, the 2nd implementation of WS. WS2 is the chemical formula of tungsten disulfide, the tungstenite mineral."
- WebTorrent
-
What's the best production-grade websocket library in Rust?
tungstenite-rs
- Surprising Things You Didn't Know About HTTP
-
Secure Websocket Client
If you just want to connect to an existing api, async-tungstenite has a connect function. It should work with wss. See some discussion of this issue here.
- The hack that improves your tungstunite-rs performance by 160x
- Is there a proper websockets server framework in Rust?
What are some alternatives?
octocrab - A modern, extensible GitHub API Client for Rust.
rust-websocket - A WebSocket (RFC6455) library written in Rust
rfcs - RFCs for changes to Rust
ws-rs - Lightweight, event-driven WebSockets for Rust.
libass - libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format.
Rocket - A web framework for Rust.
prettier-plugin-rust - Prettier Rust is an opinionated code formatter that autocorrects bad syntax.
Warp - Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
rouille - Rust programming, in French.
sockjs
abomonation - A mortifying serialization library for Rust
warp - A super-easy, composable, web server framework for warp speeds.