mransan / ocaml-protoc

A Protobuf Compiler for OCaml
https://mransan.github.io/ocaml-protoc/
MIT License
179 stars 33 forks source link

Add documentation for dune and deriving #225

Open tmcgilchrist opened 9 months ago

tmcgilchrist commented 9 months ago

Two small additions for; How to use ocaml-protoc with a dune rule for generating code, and How to extend generated types with PPX deriving. Neither option was obvious to me when picking up the library the first time and they might be useful to other new people.

c-cube commented 9 months ago

Thank you. Do you feel up to writing a little paragraph with an example, for the ppx capabilities?

tmcgilchrist commented 9 months ago

Sure, I can do that. Please leave this PR open and I'll append my changes to it.