Permalink
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (69 sloc) 2.03 KB
opam-version: "2.0"
version: "3.1.0"
maintainer: [
"Anton Bachin <antonbachin@yahoo.com>"
"Mauricio Fernandez <mfp@acm.org>"
"Simon Cruanes <simon.cruanes.2007@m4x.org>"
]
authors: [
"Jérôme Vouillon"
"Jérémie Dimino"
]
homepage: "https://github.com/ocsigen/lwt"
doc: "https://ocsigen.org/lwt/manual/"
bug-reports: "https://github.com/ocsigen/lwt/issues"
license: "LGPL with OpenSSL linking exception"
dev-repo: "git+https://github.com/ocsigen/lwt.git"
build: [
[
"ocaml"
"src/util/configure.ml"
"-use-libev"
"%{conf-libev:installed}%"
"-use-camlp4"
"%{camlp4:installed}%"
]
["jbuilder" "build" "-p" name "-j" jobs]
["ocaml" "src/util/install_filter.ml"]
["jbuilder" "runtest" "-p" name] {with-test}
]
depends: [
"ocaml" {>= "4.02.0"}
"cppo" {build & >= "1.1.0"}
"jbuilder" {build & >= "1.0+beta10"}
"ocamlfind" {build & >= "1.5.0"}
"ocaml-migrate-parsetree"
"ppx_tools_versioned" {>= "5.0.1"}
"result"
]
depopts: [
"base-threads"
"base-unix"
"camlp4"
"conf-libev"
]
# In practice, Lwt requires OCaml >= 4.02.3, as that is a constraint of the
# dependency jbuilder.
messages: [
"For module Lwt_ssl, please install package lwt_ssl"
{ssl:installed & !lwt_ssl:installed}
"For module Lwt_glib, please install package lwt_glib"
{lablgtk:installed & !lwt_glib:installed}
"For module Lwt_react, please install package lwt_react"
{react:installed & !lwt_react:installed}
]
synopsis: "Concurrency based on promises"
description: """
A promise is a value that may become determined in the future.
Lwt provides typed, composable promises. Promises that are resolved by I/O are
resolved by Lwt in parallel.
Meanwhile, OCaml code, including code creating and waiting on promises, runs in
a single thread by default. This reduces the need for locks or other
synchronization primitives. Code can be run in parallel on an opt-in basis."""
conflicts: [
"ocaml-variants" {= "4.02.1+BER"}
]
url {
src: "https://github.com/ocsigen/lwt/archive/3.1.0.tar.gz"
checksum: "md5=e80364e38c5fae791a6506b9c113fd29"
}