Repository navigation
docs(design): Windows CopyFileEx for platform_copy parity (#1749, #1414) - #3726
Merged
Merged
Conversation
oferchen
force-pushed
the
docs/windows-copyfileex-1749
branch
from
May 5, 2026 20:20
efca3eb to
d44628a
Compare
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
force-pushed
the
docs/windows-copyfileex-1749
branch
from
May 5, 2026 20:20
d44628a to
b9aecd0
Compare
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.
3 tasks
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
copy_file_rangeand macOSfcopyfile- replacing the existingwindows-sysraw FFI body incrates/fast_io/src/platform_copy/dispatch.rs:228-273with awindows-rsimplementation.CopyFileExWandCopyFile2surface, the progress callback trampoline, thepbCancelintegration with the transfer abort signal, theGetLastErrortoExitCodemapping, and the sparse-file handling.PlatformCopytrait without breaking changes; the wire protocol and public API are untouched.Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings