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.
24 lines
550 B
OCaml
24 lines
550 B
OCaml
open Capnp_rpc.Std
|
|
|
|
module S = S
|
|
|
|
module Endpoint = Endpoint
|
|
module Restorer = Restorer
|
|
|
|
module type VAT_NETWORK = S.VAT_NETWORK with
|
|
type 'a capability := 'a Capability.t and
|
|
type restorer := Restorer.t and
|
|
type service_id := Restorer.Id.t and
|
|
type 'a sturdy_ref := 'a Sturdy_ref.t
|
|
|
|
module Networking (N : S.NETWORK) = struct
|
|
module Network = N
|
|
module Vat = Vat.Make (N)
|
|
module CapTP = Vat.CapTP
|
|
end
|
|
|
|
module Capnp_address = Capnp_address
|
|
module Two_party_network = Two_party_network
|
|
module Auth = Auth
|
|
module Tls_wrapper = Tls_wrapper
|