Skip to content

Conversation

@JayWhite2357
Copy link
Contributor

@JayWhite2357 JayWhite2357 commented Dec 19, 2025

Rationale

There are several places that io is used. This can be problematic, particularly for constrained targets (wasm, etc).

Changes

In some places std::io usage can/should be removed.
In others, it is unavoidable, but is be gated behind an io feature flag.

See the individual commit messages for details.

…log_ext` macro

`std::io::Read::read_exact` was used before, which indirectly is a single call to `digest::XofReader::read` in this scenario
Also, uses `bincode`s `EncodeError` instead of `io::Error`.
In practice, no error is ever returned.
Copy link
Collaborator

@srinathsetty srinathsetty left a comment

Choose a reason for hiding this comment

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

LGTM!

@srinathsetty srinathsetty merged commit 546e950 into microsoft:main Jan 5, 2026
7 checks passed
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