esrlabs / chipmunk

log analysis tool
Apache License 2.0
553 stars 39 forks source link

Add protobuf module as wasm module #2054

Open DmitryAstafyev opened 1 month ago

DmitryAstafyev commented 1 month ago

Description

To avoid generating a code for both (rust and JS) sides, we can:

In this way we can be sure: that messages on rust and JS will be encoded/decoded in the same way

Motivation

Research shows: that using different libraries/modules to generate code based on *.proto at the end can give different results. For example same message can be encoded into different bytes on JS side and on Rust side. That makes work with protocol unpredictable.

DmitryAstafyev commented 1 month ago

General note: code isn't documented at all. It will be before merging.