Skip to content

docs(design): Windows CopyFileEx for platform_copy parity (#1749, #1414) - #3726

Merged
oferchen merged 1 commit into
masterfrom
docs/windows-copyfileex-1749
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/windows-copyfileex-1749

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Design note for the Windows tier-2 copy path - the analogue of Linux copy_file_range and macOS fcopyfile - replacing the existing windows-sys raw FFI body in crates/fast_io/src/platform_copy/dispatch.rs:228-273 with a windows-rs implementation.
  • Specifies the CopyFileExW and CopyFile2 surface, the progress callback trampoline, the pbCancel integration with the transfer abort signal, the GetLastError to ExitCode mapping, and the sparse-file handling.
  • Wires into the existing PlatformCopy trait without breaking changes; the wire protocol and public API are untouched.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
  • Docs-only PR; CI runs lint and the workspace build matrix.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen force-pushed the docs/windows-copyfileex-1749 branch from efca3eb to d44628a Compare May 5, 2026 20:20
Design note for the Windows tier-2 copy path - the analogue of Linux
copy_file_range and macOS fcopyfile - replacing the existing
windows-sys raw FFI body in crates/fast_io/src/platform_copy/dispatch.rs
with a windows-rs implementation, wiring the progress routine and
cancel pointer through to the receiver, and introducing a CopyFile2
variant for forward-compatible flag plumbing. Wire protocol and the
public PlatformCopy trait are unchanged.
@oferchen
oferchen force-pushed the docs/windows-copyfileex-1749 branch from d44628a to b9aecd0 Compare May 5, 2026 20:20
@oferchen
oferchen merged commit e09c9e0 into master May 5, 2026
7 checks passed
@oferchen
oferchen deleted the docs/windows-copyfileex-1749 branch May 6, 2026 18:57
oferchen added a commit that referenced this pull request May 18, 2026
…) (#3726)

Design note for the Windows tier-2 copy path - the analogue of Linux
copy_file_range and macOS fcopyfile - replacing the existing
windows-sys raw FFI body in crates/fast_io/src/platform_copy/dispatch.rs
with a windows-rs implementation, wiring the progress routine and
cancel pointer through to the receiver, and introducing a CopyFile2
variant for forward-compatible flag plumbing. Wire protocol and the
public PlatformCopy trait are unchanged.
oferchen added a commit that referenced this pull request Aug 24, 2026
…) (#3726)

Design note for the Windows tier-2 copy path - the analogue of Linux
copy_file_range and macOS fcopyfile - replacing the existing
windows-sys raw FFI body in crates/fast_io/src/platform_copy/dispatch.rs
with a windows-rs implementation, wiring the progress routine and
cancel pointer through to the receiver, and introducing a CopyFile2
variant for forward-compatible flag plumbing. Wire protocol and the
public PlatformCopy trait are unchanged.
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