Skip to content

Releases: HaveFunTrading/boomnet

0.0.33

07 Jan 17:50
Compare
Choose a tag to compare

Changelog

Changes

  • [Stream] Use ConnectionInfo to simplify TCP stream creation and configuration. In addition, the ConnectionInfoProvider trait ensures cleaner stream composition API.

For example, before the change, when creating Websocket using composition we would need to reference server_name in multiple places.

let mut ws = TcpStream::bind_and_connect("stream.binance.com:9443", None, None)?
    .into_tls_stream("stream.binance.com")
    .into_websocket("wss://stream.binance.com:9443/ws");

After the change, the Websocket creation looks much simpler.

let mut ws = TcpStream::try_from(("stream.binance.com", 9443))?
    .into_tls_stream()
    .into_websocket("/ws");

0.0.32

05 Jan 15:39
Compare
Choose a tag to compare

Changelog

Changes

  • [IO Service] Remove dependency on internal idle_strategy.

0.0.31

04 Jan 21:44
Compare
Choose a tag to compare

Changelog

Changes

  • [Websocket] Try to read more data from the network only if required.

0.0.30

04 Jan 20:04
6611047
Compare
Choose a tag to compare

Changelog

Changes

  • [Websocket] Introduce batch_iter method to obtain iterator over current messages received since the last network read. This way of consuming messages should be preferred over receive_next that will deliver at most one message at a time.
  • [Websocket] Removed frame timestamps (not backwards compatible). If you need to create batch aware timestamps use the new batch_iter method.
  • [Other] MSRV has been changed to 1.83.0 so that we can use const on functions that take mutable references.

0.0.29

02 Jan 15:59
Compare
Choose a tag to compare

Changelog

Changes

  • [Websocket] Better handle CLOSE_FRAME messages received from the server.

0.0.28

30 Dec 20:33
Compare
Choose a tag to compare

Changelog

Changes

  • [Websocket]
    • Switch to static lifetime for WebsocketFrame
    • Fix buffering of pending messages when handshake not done
    • Respond to ping immediately

0.0.27

29 Dec 21:33
Compare
Choose a tag to compare

Changelog

Changes

  • [Websocket] Expose websocket handshake state.
  • [Websocket] Buffer pending text messages until handshake has been completed.

New Contributors

0.0.26

14 Dec 22:03
Compare
Choose a tag to compare

Changelog

Changes

  • [Service] Add misising call to IdleStrategy when polling endpoint with context.

0.0.25

15 May 17:15
Compare
Choose a tag to compare

Changelog

Changes

  • [Stream] Fix ReadBuffer capacity check upon creation to use INITIAL_CAPACITY instead of DEFAULT_INITIAL_CAPACITY.

0.0.24

06 May 20:27
Compare
Choose a tag to compare

Changelog

Changes

  • [Stream] Upgrade rustls to 0.22.4.
  • [IO Service] Endpoint no longer requires to implement Default.