···
3
+
synopsis: "Promises and event-driven I/O"
5
+
homepage: "https://github.com/ocsigen/lwt"
6
+
doc: "https://ocsigen.org/lwt"
7
+
bug-reports: "https://github.com/ocsigen/lwt/issues"
14
+
"Raphaël Proust <code@bnwr.net>"
15
+
"Anton Bachin <antonbachin@yahoo.com>"
17
+
dev-repo: "git+https://github.com/ocsigen/lwt.git"
20
+
"cppo" {build & >= "1.1.0"}
23
+
"mmap" {>= "1.1.0"} # mmap is needed as long as Lwt supports OCaml < 4.06.0.
24
+
"ocaml" {>= "4.02.0"}
25
+
("ocaml" {>= "4.08.0"} | "ocaml-syntax-shims")
27
+
"result" # result is needed as long as Lwt supports OCaml 4.02.
28
+
"seq" # seq is needed as long as Lwt supports OCaml < 4.07.0.
30
+
# Until https://github.com/aantron/bisect_ppx/pull/327.
31
+
# "bisect_ppx" {dev & >= "2.0.0"}
32
+
"ocamlfind" {dev & >= "1.7.3-1"}
42
+
"ocaml-variants" {= "4.02.1+BER"}
46
+
["dune" "exec" "-p" name "src/unix/config/discover.exe" "--" "--save"
47
+
"--use-libev" "%{conf-libev:installed}%"]
48
+
["dune" "build" "-p" name "-j" jobs]
51
+
description: "A promise is a value that may become determined in the future.
53
+
Lwt provides typed, composable promises. Promises that are resolved by I/O are
54
+
resolved by Lwt in parallel.
56
+
Meanwhile, OCaml code, including code creating and waiting on promises, runs in
57
+
a single thread by default. This reduces the need for locks or other
58
+
synchronization primitives. Code can be run in parallel on an opt-in basis."
60
+
src: "https://github.com/ocsigen/lwt/archive/refs/tags/5.4.2.tar.gz"
62
+
"md5=ba3659a8918d8e7cb0f4ef9a83945f90"
63
+
"sha512=9f46fb2e56dc7bd57a12d5ab4dc68719947a1462f336087a95e991d087bb9b5b8dee2592d0f7d35abc507d9a641dd221c44c949c81d00e26c673a067d94ba3f4"