Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove byteorder dependency #66

Conversation

workingjubilee
Copy link
Contributor

In doing so, simplify bit_reader_reverse::refill_slow a tad.

The primary reason for doing this is to make the std/backtrace integration step with this crate easier. This way we have one less dependency to compile, and thus don't have to also "bless" byteorder with the special features libstd needs to compile a crate as part of its dependencies.

In doing so, simplify bit_reader_reverse::refill_slow a tad.
Comment on lines +68 to +70
let offset @ 1..=8 = can_read_bytes as usize else {
unreachable!()
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you would prefer to maintain the "evening out" that the code previously did (i.e. 6..=7 => 6 and so on), that can be done, but both versions pass a cargo test, and if there's a material reason that one shouldn't, then a test should exist that prevents regressing this.

@workingjubilee workingjubilee mentioned this pull request Aug 25, 2024
@workingjubilee
Copy link
Contributor Author

workingjubilee commented Aug 28, 2024

Fuzzing is seemingly not finding new issues with this variant. ( Still not on Aug 29 )

@KillingSpark
Copy link
Owner

I'm guessing this is obsolete with #67 containing these changes too?

@workingjubilee workingjubilee deleted the remove-byteorder-dep branch September 6, 2024 17:59
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