Skip to content

feat: enable zstd and lz4 auto-negotiation in compression capability string - #3050

Merged
oferchen merged 1 commit into
masterfrom
feature/enable-zstd-lz4-negotiation
Mar 30, 2026
Merged

oferchen merged 1 commit into
masterfrom
feature/enable-zstd-lz4-negotiation

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add zstd and lz4 to supported_compressions() list, gated by cargo feature flags
  • Negotiation order matches upstream precedence: zstd > lz4 > zlibx > zlib > none
  • Update comment explaining wire framing is now fixed (PR fix: align zstd per-token flush boundaries with upstream framing #3047 for zstd, lz4 is stateless)
  • Update tests to expect zstd/lz4 in compression list when features enabled

Test plan

  • CI fmt+clippy passes
  • All nextest suites pass (Linux, macOS, Windows)
  • Compression codec interop tests pass against upstream 3.4.1
  • Feature flag combination tests pass

…string

Zstd per-token flush boundary alignment was fixed (PR #3047) and lz4 is
stateless with correct framing. Both codecs are now advertised during
protocol negotiation when their feature flags are enabled, matching
upstream rsync 3.4.1 preference order: zstd > lz4 > zlibx > zlib > none.
@github-actions github-actions Bot added the enhancement New feature or request label Mar 30, 2026
@oferchen
oferchen merged commit e3a6ef6 into master Mar 30, 2026
26 of 38 checks passed
@oferchen
oferchen deleted the feature/enable-zstd-lz4-negotiation branch March 30, 2026 13:30
oferchen added a commit that referenced this pull request May 1, 2026
…string (#3050)

Zstd per-token flush boundary alignment was fixed (PR #3047) and lz4 is
stateless with correct framing. Both codecs are now advertised during
protocol negotiation when their feature flags are enabled, matching
upstream rsync 3.4.1 preference order: zstd > lz4 > zlibx > zlib > none.
oferchen added a commit that referenced this pull request May 5, 2026
…string (#3050)

Zstd per-token flush boundary alignment was fixed (PR #3047) and lz4 is
stateless with correct framing. Both codecs are now advertised during
protocol negotiation when their feature flags are enabled, matching
upstream rsync 3.4.1 preference order: zstd > lz4 > zlibx > zlib > none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant