dialohq / ocaml-grpc

gRPC library for OCaml
https://dialohq.github.io/ocaml-grpc
BSD 3-Clause "New" or "Revised" License
62 stars 9 forks source link

Compatibility with `h2` 0.9.0 #16

Closed quernd closed 2 years ago

quernd commented 2 years ago

(fixes #15)

h2 0.9.0 introduced a breaking change by splitting Body.t into Body.Reader.t and Body.Writer.t. The changes are very mechanical.

Unfortunately, faraday-async is not being updated, and as a result h2 is stuck on 0.8.0 on Opam, so I had to add a few pin-depends on the async side to make dependency resolution work.

Most of these changes are also present in https://github.com/dialohq/ocaml-grpc/pull/11 so I think we can merge that next.