Skip to content

docs(protocol): rustdoc cleanup for legacy module - #3730

Merged
oferchen merged 1 commit into
masterfrom
docs/protocol-legacy-rustdoc
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/protocol-legacy-rustdoc

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expand the module preamble for protocol::legacy so the rustdoc reflects that the ASCII @RSYNCD: handshake is the bootstrap exchange for every daemon connection (including protocol 32), not only the pre-30 fallback path.
  • Add an upstream pointer (clientserver.c:read_line / start_inband_exchange) so future readers can locate the C source of truth.
  • Document the previously undocumented pub(super) helpers malformed_legacy_greeting and lossy_trimmed_input, citing the upstream @ERROR: protocol startup error flow they mirror.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
  • cargo doc --workspace --no-deps
  • CI nextest (stable) on Linux, macOS, Windows

Expand the module preamble for `protocol::legacy` to clarify that the
ASCII `@RSYNCD:` handshake is the bootstrap exchange even at protocol 32
(not only the < 30 fallback) and add an upstream pointer to
`clientserver.c:read_line` / `start_inband_exchange`.

Document the previously-undocumented `pub(super)` helpers
`malformed_legacy_greeting` and `lossy_trimmed_input`, citing the
upstream `@ERROR: protocol startup error` flow they mirror.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit 01d39ff into master May 5, 2026
39 checks passed
@oferchen
oferchen deleted the docs/protocol-legacy-rustdoc branch May 6, 2026 18:56
oferchen added a commit that referenced this pull request May 18, 2026
Expand the module preamble for `protocol::legacy` to clarify that the
ASCII `@RSYNCD:` handshake is the bootstrap exchange even at protocol 32
(not only the < 30 fallback) and add an upstream pointer to
`clientserver.c:read_line` / `start_inband_exchange`.

Document the previously-undocumented `pub(super)` helpers
`malformed_legacy_greeting` and `lossy_trimmed_input`, citing the
upstream `@ERROR: protocol startup error` flow they mirror.
oferchen added a commit that referenced this pull request Aug 24, 2026
Expand the module preamble for `protocol::legacy` to clarify that the
ASCII `@RSYNCD:` handshake is the bootstrap exchange even at protocol 32
(not only the < 30 fallback) and add an upstream pointer to
`clientserver.c:read_line` / `start_inband_exchange`.

Document the previously-undocumented `pub(super)` helpers
`malformed_legacy_greeting` and `lossy_trimmed_input`, citing the
upstream `@ERROR: protocol startup error` flow they mirror.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant