Zig library for encoding and decoding Roon WebSocket message
Commits at 1dfdc5ed9175d59e2036cf23e7b6654abf0fd606
1dfdc5edWorkaround package consumer downloads clap and websocket packages
<https://github.com/ziglang/zig/issues/21525>
Zig build system cannot determine if the dependency is required for the
current step or not (for now.) For this case, moving the whole step
(option) to individual build script is possible because the step
(option) is not supposed to be depended by other packages.
Shota FUJI
authored at
Shota FUJI
comitted at
2f073dbeChange request_id from i64 to u64
No benefit for having negative numbers.
Shota FUJI
authored at
Shota FUJI
comitted at
8802c467Allow passing JSON stringify options to JSONBody
Roon API heavily uses optional fields, probably for size saving.
Shota FUJI
authored at
Shota FUJI
comitted at
281d6324Allow passing JSON parse option to JSONBody
ignore_unknown_fields is frequently used option in real world.
Shota FUJI
authored at
Shota FUJI
comitted at
d0bb276eExport parser contexts
Without these, users have to parse at one-go.
Shota FUJI
authored at
Shota FUJI
comitted at
fad07b77Header generation method for bodies
Most of my usecase only requires content-type/length and request id.
Shota FUJI
authored at
Shota FUJI
comitted at
f2cc18d9Move parser context out of data structs
Presence of "context" field and such prevented me from writing
serializer (builder, encoder) and clean C API.
I'm still not sure how to design C API for this, but this patch would
definitely help serializer.
Shota FUJI
authored at
Shota FUJI
comitted at
57ad36dbBody parsing
Although parsing functionality is complete, API is mess.
So this project is not ready yet.
Shota FUJI
authored at
Shota FUJI
comitted at
629d011eFix incorrect test descriptions
"Metadata.parse()" is a static method.
Shota FUJI
authored at
Shota FUJI
comitted at