mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
This switches capnp-rpc from Lwt to Eio. One particularly nice side effect of this is that `Service.return_lwt` has gone, as there is no distinction now between concurrent and non-concurrent service methods.
15 lines
381 B
Plaintext
15 lines
381 B
Plaintext
(library
|
|
(name capnp_rpc)
|
|
(public_name capnp-rpc)
|
|
(libraries astring capnp capnp-rpc.proto fmt logs eio uri))
|
|
|
|
(rule
|
|
(targets rpc_schema.ml rpc_schema.mli)
|
|
(deps rpc_schema.capnp)
|
|
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
|
|
|
|
(rule
|
|
(targets persistent.ml persistent.mli)
|
|
(deps persistent.capnp)
|
|
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
|