Skip to content

Add bytecheck support - #111

Merged
danlehmann merged 2 commits into
danlehmann:mainfrom
paulmenage:checkbytes
Jul 31, 2026
Merged

Add bytecheck support#111
danlehmann merged 2 commits into
danlehmann:mainfrom
paulmenage:checkbytes

Conversation

@paulmenage

Copy link
Copy Markdown
Contributor

Add a bytecheck feature to the crate, which derives bytecheck::CheckBytes and implements bytecheck::Verify to allows for run-time verification of arbitrary int values received from untrusted sources.

Comment thread src/unsigned.rs Outdated
Self: Integer,
{
fn verify(&self, _context: &mut C) -> Result<(), C::Error> {
//impl core::error::Error for TooBigError {}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

remove dead code

@danlehmann

Copy link
Copy Markdown
Owner

Thanks for the commit. Looks good. Could you please add an entry to the changelog?

Add a `bytecheck` feature to the crate, which derives `bytecheck::CheckBytes` and implements
`bytecheck::Verify` to allows for run-time verification of arbitrary int values received from
untrusted sources.
@danlehmann

Copy link
Copy Markdown
Owner

test step was fixed here: #112

rebasing should fix the build issue

@danlehmann
danlehmann merged commit acd28cd into danlehmann:main Jul 31, 2026
16 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