Skip to content

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

Open
GrownNed wants to merge 4 commits intomlugg:mainfrom
GrownNed:main
Open

zig 0.14.0-dev.1421+f87dd43c1 update + repeated message fix + more tests#1
GrownNed wants to merge 4 commits intomlugg:mainfrom
GrownNed:main

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