Skip to content

fix(deps): update rust crate tungstenite to 0.20.0#12

Open
vanlueckn wants to merge 1 commit intodevfrom
renovate/tungstenite-0.x
Open

fix(deps): update rust crate tungstenite to 0.20.0#12
vanlueckn wants to merge 1 commit intodevfrom
renovate/tungstenite-0.x

Conversation

@vanlueckn
Copy link
Owner

This PR contains the following updates:

Package Type Update Change
tungstenite dependencies minor 0.19.0 -> 0.20.0

Release Notes

snapview/tungstenite-rs (tungstenite)

v0.20.0

Compare Source

  • Remove many implicit flushing behaviours. In general reading and writing messages will no
    longer flush until calling flush. An exception is automatic responses (e.g. pongs)
    which will continue to be written and flushed when reading and writing.
    This allows writing a batch of messages and flushing once, improving performance.
  • Add WebSocket::read, write, send, flush. Deprecate read_message, write_message, write_pending.
  • Add FrameSocket::read, write, send, flush. Remove read_frame, write_frame, write_pending.
    Note: Previous use of write_frame may be replaced with send.
  • Add WebSocketContext::read, write, flush. Remove read_message, write_message, write_pending.
    Note: Previous use of write_message may be replaced with write + flush.
  • Remove send_queue, replaced with using the frame write buffer to achieve similar results.
    • Add WebSocketConfig::max_write_buffer_size. Deprecate max_send_queue.
    • Add Error::WriteBufferFull. Remove Error::SendQueueFull.
      Note: WriteBufferFull returns the message that could not be written as a Message::Frame.
  • Add ability to buffer multiple writes before writing to the underlying stream, controlled by
    WebSocketConfig::write_buffer_size (default 128 KiB). Improves batch message write performance.
  • Panic on receiving invalid WebSocketConfig.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants