extprot
extprot copied to clipboard
extprot: extensible binary protocols for cross-language communication and long-term serialization
I'm trying to resurrect `oraft`, which needs this package. Or maybe I should use another library for serialization? Edit: I mean a `camlp4`-less version
Camlp4 release for OCaml 4.08 is the last release ever - see the [official announcement](https://discuss.ocaml.org/t/the-end-of-camlp4/4216). It is recommended to port the code to use ppx (extension points), or any external...
I would expect a warning?
It appears extprot accepts message alias to message, but generates bad code. This possibility is not documented afaik, not sure if it should be fixed or forbidden, I stumbled on...
instead of ``` type x = int options "ocaml.type" = "Common.SomeId.t, Common.SomeId.inject, Common.SomeId.project" ``` we could have ``` type x = int options "ocaml.type" = "Common.SomeId.(t, inject, project" ```
see #24 for motivation
Imagine serialized data having some bug. For user-defined types it is possible to apply fix by providing proper `ocaml.type` "unserializer". For top-level messages it is possible to overshadow with custom...
to avoid `maybe` when extending
Hello, Apologies if this isn't the right place to ask questions, wasn't sure where to ask so I figured a GitHub issues might be a good place to start. I'm...