Skip to content

Comments

bump version to v0.1.1#2

Merged
SF-Zhou merged 1 commit intomainfrom
dev
Jan 18, 2026
Merged

bump version to v0.1.1#2
SF-Zhou merged 1 commit intomainfrom
dev

Conversation

@SF-Zhou
Copy link
Owner

@SF-Zhou SF-Zhou commented Jan 18, 2026

  1. add read_exact option

1. add read_exact option
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR bumps the version to v0.1.1 and introduces a new read_exact option that allows users to control whether reads must fill the entire buffer or can be partial.

Changes:

  • Added read_exact boolean field to Options struct with a builder method with_read_exact()
  • Implemented read_exact logic in both fallback read path (using read_exact_at) and device read path (with validation)
  • Updated version numbers in Cargo.toml and Cargo.lock from 0.1.0 to 0.1.1

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
Cargo.toml Version bump from 0.1.0 to 0.1.1
Cargo.lock Version bump from 0.1.0 to 0.1.1
src/options.rs Added read_exact field with documentation, default value, and builder method
src/reader.rs Implemented read_exact logic in both fallback and device read paths with appropriate error handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SF-Zhou SF-Zhou merged commit 0e9a5e5 into main Jan 18, 2026
1 check passed
@SF-Zhou SF-Zhou deleted the dev branch January 18, 2026 12:44
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.

1 participant