Skip to content

zig 0.14.0-dev.1421+f87dd43c1 update + repeated message fix + more tests #1

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

GrownNed
Copy link

@GrownNed GrownNed commented Sep 8, 2024

Updated the implementation to zig version 0.14.0.

  • Fixed a bug when deserializing repeated message fields (previously, the decodeSingleScalar function was mistakenly used instead of decodeSingleValue when reading repeated fields, which made it impossible to deserialize sub-messages).
  • Allowed default values for strings and byte arrays.
  • Fixed .repeat_pack encoding (skip encoding if the list is empty).

Public API change:

  • decodeMessage -> decode
  • encodeMessage -> encode

Parameters in those functions were sorted in the order they appear in functions from std.
Additionally, a couple of new tests were written.

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