Skip to content

Refactor client facade into modular components#1659

Merged
oferchen merged 1 commit into
masterfrom
prepare-for-production-release-cleanup
Oct 30, 2025
Merged

Refactor client facade into modular components#1659
oferchen merged 1 commit into
masterfrom
prepare-for-production-release-cleanup

Conversation

@oferchen
Copy link
Copy Markdown
Owner

Summary

  • decompose the core client module into dedicated error, summary, progress, outcome, and runtime orchestration units
  • retain the public API via revised re-exports and add documentation for the run_* entry points
  • adjust client tests to import the new internal helpers directly

Testing

  • cargo check -p rsync-core

https://chatgpt.com/codex/tasks/task_e_69033e9b20d483238227fd6b3d1f83c5

@oferchen oferchen merged commit d40987b into master Oct 30, 2025
@oferchen oferchen deleted the prepare-for-production-release-cleanup branch October 30, 2025 10:45
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +417 to +431
fn resolve_destination_path(destination_root: &Path, relative: &Path) -> PathBuf {
let candidate = destination_root.join(relative);
if candidate.exists() {
return candidate;
}

if destination_root
.file_name()
.is_some_and(|file_name| relative == Path::new(file_name))
{
return destination_root.to_path_buf();
}

candidate
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Expose resolve_destination_path for tests

The new module split moves ClientEvent::resolve_destination_path into the summary submodule where it remains private (fn resolve_destination_path). The unit tests still call ClientEvent::resolve_destination_path(...) from client/tests.rs, but sibling modules cannot access a private method defined inside summary, so cargo test -p rsync-core will now fail to compile. Consider making the helper pub(crate) or updating the tests to avoid calling the private API.

Useful? React with 👍 / 👎.

oferchen added a commit that referenced this pull request May 5, 2026
Mirrors the IoUringDiskBatch and IocpDiskBatch shape so the disk-commit
thread keeps a single calling convention across platforms; covers the
kqueue model, AsyncFileWriter trait mapping, dispatch wiring, limits
vs io_uring, and the migration sequence through #1657 / #1659 / #1386.
oferchen added a commit that referenced this pull request May 18, 2026
Mirrors the IoUringDiskBatch and IocpDiskBatch shape so the disk-commit
thread keeps a single calling convention across platforms; covers the
kqueue model, AsyncFileWriter trait mapping, dispatch wiring, limits
vs io_uring, and the migration sequence through #1657 / #1659 / #1386.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant