Skip to content

feat: add Windows support - #8

Merged
hiimjako merged 2 commits into
mainfrom
feat/windows-support
Mar 2, 2026
Merged

feat: add Windows support#8
hiimjako merged 2 commits into
mainfrom
feat/windows-support

Conversation

@ijroth

@ijroth ijroth commented Feb 17, 2026

Copy link
Copy Markdown

Summary

  • Replace Unix-only std::os::unix::fs::FileExt with the cross-platform positioned-io crate (v0.3), enabling compilation and correct behavior on Windows
  • Swap argument order at all 52 read_exact_at/write_all_at/write_at call sites from (buf, offset) to (offset, buf) to match positioned-io API
  • Disambiguate flush() calls between std::io::Write and positioned_io::WriteAt traits
  • Add windows-latest to CI test matrix (lint/fmt/clippy kept Ubuntu-only)

Test plan

  • All 36 existing tests pass on macOS
  • Clippy clean, no warnings
  • CI passes on ubuntu-latest
  • CI passes on windows-latest

🤖 Generated with Claude Code

ijroth and others added 2 commits February 16, 2026 22:33
Replace Unix-only `std::os::unix::fs::FileExt` (pread/pwrite) with the
cross-platform `positioned-io` crate, which delegates to pread/pwrite on
Unix and seek_read/seek_write on Windows.

- Swap all read_exact_at/write_all_at/write_at call sites from (buf, offset)
  to (offset, buf) argument order
- Disambiguate flush() calls between std::io::Write and WriteAt traits
- Add Windows to CI test matrix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hiimjako

Copy link
Copy Markdown
Contributor

LGTM, I've just polished a bit the CI workflow.

@hiimjako
hiimjako merged commit 12f83d8 into main Mar 2, 2026
3 checks passed
@hiimjako
hiimjako deleted the feat/windows-support branch March 2, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants