Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

fix: update streamer crate for lapin 4.0.0 API changes - #942

Merged
gemcoder21 merged 2 commits into
dependabot/cargo/lapin-4.0.0from
copilot/sub-pr-941
Feb 10, 2026
Merged

gemcoder21 merged 2 commits into
dependabot/cargo/lapin-4.0.0from
copilot/sub-pr-941

Conversation

Copilot AI commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor

lapin 4.0.0 introduces breaking API changes requiring string parameters to be ShortString instead of &str, and makes the publisher_confirm module private.

Changes

  • Import: Use lapin::Confirmation directly instead of lapin::publisher_confirm::Confirmation (now private)
  • Type conversions: Add .into() calls for all lapin method string parameters:
    • Queue operations: queue_declare, queue_delete, queue_purge
    • Exchange operations: exchange_declare, queue_bind
    • Publishing: basic_publish
    • Consumer operations: basic_consume, channel.close
// Before (lapin 3.7.2)
self.channel.queue_declare(name, options, args).await?;
self.channel.basic_publish(exchange, routing_key, options, data, props).await?;

// After (lapin 4.0.0)
self.channel.queue_declare(name.into(), options, args).await?;
self.channel.basic_publish(exchange.into(), routing_key.into(), options, data, props).await?;

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@semanticdiff-com

semanticdiff-com Bot commented Feb 10, 2026 •

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  crates/streamer/src/stream_reader.rs  95% smaller
  crates/streamer/src/stream_producer.rs  78% smaller

Copilot AI changed the title [WIP] Update lapin dependency from 3.7.2 to 4.0.0 fix: update streamer crate for lapin 4.0.0 API changes Feb 10, 2026
Copilot AI requested a review from gemcoder21 February 10, 2026 07:06
@gemcoder21
gemcoder21 marked this pull request as ready for review February 10, 2026 07:15
@gemcoder21
gemcoder21 merged commit 80c8e15 into dependabot/cargo/lapin-4.0.0 Feb 10, 2026
@gemcoder21
gemcoder21 deleted the copilot/sub-pr-941 branch February 10, 2026 07:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants