Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Releases: polyphony-chat/polyproto-rs

v0.11

28 Jun 15:40
069c3b3
Compare
Choose a tag to compare

Additions

  • Lots of new functionality for the SerialNumber and Uint newtypes, including a serde impl for Uint
  • Formatting improvements and compiler warning fixes
  • Stability improvements through use of checked_add() and friends whereever needed and replacing .unwrap() with Err() returnings
  • Slightly more robust certificate validation through added SerialNumber validation step

Bug fixes

Upcoming

v0.12 is set to include sqlx_postgres support for some of the types offered by this crate, to make working with this crate easier in scenarios requiring a PostgreSQL database.

Full Changelog: v0.10...v0.11

v0.10

30 Mar 11:33
b5ba683
Compare
Choose a tag to compare

Release v0.10

The tenth release of the polyproto crate is the biggest one yet. It touches almost all areas of the source code and brings numerous improvements, bug fixes and additions.

Most notably, v0.10 has been updated to be almost fully compliant with Beta 1 of the polyproto specification! All the API routes, types and the most important behaviors are there and available for you to tinker and prototype with!

Some more advanced features are missing, though. Notably, v0.10 lacks zstd WebSocket compression support and advanced migrations features, such as performing and verifying migrations out of the box. Developers and tinkerers can add this functionality themselves, as all the needed "parts" for it exist (API routes, verification behaviors, etc.)—there just isn't one, simple function you can call yet.

Things like these are planned for the v0.11 and v0.12 releases.

Gateway

This version ships polyproto WebSocket gateway client functionality, gated behind the gateway crate feature. The implementation of this feature is super backend-agnostic—though, for now, we have sealed the needed traits, and are only shipping a tokio-tungstenite backend for testing.

The gateway handles establishing a connection to the server, sending regular heartbeats at the specified interval and responding to Opcode 11—the manual heartbeat request.

Apart from the Hello payload, library consumers can easily get access to all messages received from the gateway by calling subscribe() on the internal tokio::sync::watch::Sender<GatewayMessage>. This means that this crate handles only the bare necessities of connecting to the gateway, and that you are free to handle incoming messages however you would like to. Our GatewayMessage type is .into() and From::<>-compatible with tokio_tungstenite::tungstenite::Message, so that you are not locked into using our types, should you not want that.

What's Changed

Full Changelog: v0.9...v0.10

v0.9

05 Jun 11:27
31f1263
Compare
Choose a tag to compare