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

RFC: Switching to custom parser for binary. #278

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

larrydewey
Copy link
Contributor

  • Refactoring some misplaced code
  • Adding custom parsing functionality
  • Implemented new and updated existing unit tests to match new functionality
  • Implemented parsing library in place of bincode where possible (eventually will completely remove it)

@larrydewey larrydewey added the enhancement New feature or request label Feb 13, 2025
@larrydewey larrydewey force-pushed the nom-parser branch 12 times, most recently from 58e55a8 to 04148cf Compare February 17, 2025 20:07
@larrydewey larrydewey marked this pull request as ready for review February 17, 2025 20:16
@larrydewey larrydewey force-pushed the nom-parser branch 2 times, most recently from 9e0cac5 to a12990b Compare February 17, 2025 22:24
@tylerfanelli
Copy link
Member

What exactly was wrong with the original binary parsing done? This introduces a few breaking changes that will require a major update.

@larrydewey
Copy link
Contributor Author

Bincode does not do an actual binary deserialization of bytes. It uses a custom format. Serde also relies on binary metadata to determine which instance of an enum something might be. This implementation removes the dependency on bincode to identify attestation report information. It will be a fairly trivial change to adapt this work to the versioning issue, as well. Yes, this will definitely introduce a significant breaking change, but it will align us with a path moving forward for various version change needs.

@larrydewey larrydewey force-pushed the nom-parser branch 2 times, most recently from bf13599 to 62fbce5 Compare February 25, 2025 21:36
- Refactoring some misplaced code
- Adding custom parsing functionality
- Implemented new and updated existing unit tests to match new functionality
- Implemented parsing library in place of bincode where possible (eventually will completely remove it)
- Added clippy fixes
- Updated README.md

Signed-off-by: Larry Dewey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants