Skip to content

chore(deps): Bump async-nats from 0.51.0 to 0.52.0 in /rsworkspace - #352

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rsworkspace/async-nats-0.52.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/rsworkspace/async-nats-0.52.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps async-nats from 0.51.0 to 0.52.0.

Release notes

Sourced from async-nats's releases.

Release async-nats/v0.52.0

Overview

This release fixes panics on line breaks in header values. A \r inside a received header value panicked the connection task, so any client allowed to publish on a subject could stop its subscribers' connections. Upgrading is recommended.

It is a minor release because HeaderValue no longer implements From<&str> and From<String>.

Fixed

Breaking changes

  • HeaderValue no longer implements From<&str> and From<String>. It implements TryFrom<&str>, TryFrom<&String> and TryFrom<String> instead, returning ParseHeaderValueError for a value with \r or \n (#1673). Affected code fails to compile:

    • headers.insert(k, HeaderValue::from(s)) → headers.insert(k, s)
    • HeaderValue::from(s), s.into() → HeaderValue::try_from(s)? to reject line breaks, HeaderValue::from_lossy(s) to replace them
    • T: Into<HeaderValue> → T: IntoHeaderValue
    • let Ok(v) = HeaderValue::try_from(s) → handle ParseHeaderValueError, the error is no longer Infallible

    String and integer values passed straight to insert or append, and str::parse, keep working.

Behaviour changes

  • A string header value with \r or \n gets a space in place of each instead of panicking. This covers HeaderMap::insert and append, PublishMessage::header, message_id and expected_*, service respond(Err(..)) and received messages. To reject such a value, convert it with HeaderValue::try_from first (#1673).
  • Stream::get_raw_message, get_last_raw_message_by_subject and KV entry without direct get no longer fail on such a header value; they replace the line breaks the same way (#1673).

Full Changelog: nats-io/nats.rs@async-nats/v0.51.0...async-nats/v0.52.0

Commits
  • 2269277 Release async-nats v0.52
  • 90d3602 Refuse line breaks in HeaderValue::try_from
  • 1c898db Replace line breaks in string header values instead of panicking
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 10, 2026
@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 326e8e0f-a681-471b-a34c-9322700b6df5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Bumps [async-nats](https://github.com/nats-io/nats.rs) from 0.51.0 to 0.52.0.
- [Release notes](https://github.com/nats-io/nats.rs/releases)
- [Commits](nats-io/nats.rs@async-nats/v0.51.0...async-nats/v0.52.0)

---
updated-dependencies:
- dependency-name: async-nats
  dependency-version: 0.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/rsworkspace/async-nats-0.52.0 branch from 93f0638 to d6d05ae Compare November 11, 2026 12:01

This branch has not been deployed

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

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants