diff --git a/dune-project b/dune-project index 5963455..8bcd0ce 100644 --- a/dune-project +++ b/dune-project @@ -63,18 +63,10 @@ (>= 4.11)) (grpc (= :version)) - (h2 - (>= 0.9.0)) - (h2-async - (>= 0.9.0)) - (async - (and (>= v0.15) (< v0.16))) - (ppx_jane - (and (>= v0.15) (< v0.16))) + (async (>= v0.16)) stringext)) (package - (name grpc-examples) (synopsis "Various grpc examples") (description "Various grpc examples.") @@ -84,12 +76,9 @@ grpc-async grpc-eio (ocaml-protoc-plugin (>= 4.5)) - (async - (and (>= v0.15) (< v0.16))) - (ppx_jane - (and (>= v0.15) (< v0.16))) ppx_deriving_yojson h2-lwt-unix + h2-async conduit-lwt-unix cohttp-lwt-unix tls-async diff --git a/examples/routeguide-async/src/client.ml b/examples/routeguide-async/src/client.ml index a1b0ec4..4e84adc 100644 --- a/examples/routeguide-async/src/client.ml +++ b/examples/routeguide-async/src/client.ml @@ -173,7 +173,7 @@ let run_route_chat connection = (* Pause and wait for server reply. Not strictly necessary but it demonstrates that responses are streamed rather than arriving as one response. *) - let%bind () = Async.after (Time_unix.Span.of_string "1s") in + let%bind () = Async.after (Time_float_unix.Span.of_string "1s") in let%bind response = Pipe.read' reader in match response with diff --git a/grpc-async.opam b/grpc-async.opam index a7e2ad4..3e060d6 100644 --- a/grpc-async.opam +++ b/grpc-async.opam @@ -22,10 +22,7 @@ depends: [ "dune" {>= "3.7"} "ocaml" {>= "4.11"} "grpc" {= version} - "h2" {>= "0.9.0"} - "h2-async" {>= "0.9.0"} - "async" {>= "v0.15" & < "v0.16"} - "ppx_jane" {>= "v0.15" & < "v0.16"} + "async" {>= "v0.16"} "stringext" "odoc" {with-doc} ] diff --git a/grpc-examples.opam b/grpc-examples.opam index 3ed5f03..e993ac0 100644 --- a/grpc-examples.opam +++ b/grpc-examples.opam @@ -23,10 +23,9 @@ depends: [ "grpc-async" "grpc-eio" "ocaml-protoc-plugin" {>= "4.5"} - "async" {>= "v0.15" & < "v0.16"} - "ppx_jane" {>= "v0.15" & < "v0.16"} "ppx_deriving_yojson" "h2-lwt-unix" + "h2-async" "conduit-lwt-unix" "cohttp-lwt-unix" "tls-async"