Skip to content

feat: design PlatformCopy trait interface for platform-specific copy optimizations - #2972

Merged
oferchen merged 1 commit into
masterfrom
feat/platform-copy-trait
Mar 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
feat/platform-copy-trait

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Introduce PlatformCopy trait in fast_io that abstracts platform-specific file copy mechanisms behind a unified Send + Sync interface
  • Add DefaultPlatformCopy implementation that auto-selects the best copy mechanism per platform
  • Add CopyMethod enum and CopyResult struct for copy path tracking and advisory strategy selection

Test plan

  • CI passes on all platforms (Linux, macOS, Windows)
  • fmt + clippy clean
  • Unit tests cover small/large/empty files, binary data, parity with std::fs::copy, trait object dispatch

@github-actions github-actions Bot added the enhancement New feature or request label Mar 22, 2026
@oferchen
oferchen merged commit cf676db into master Mar 22, 2026
12 of 17 checks passed
@oferchen
oferchen deleted the feat/platform-copy-trait branch March 22, 2026 14:10
oferchen added a commit that referenced this pull request May 1, 2026
oferchen added a commit that referenced this pull request May 5, 2026
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