package uwt
All checked builds failInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e653a9fc7a13c5435a58780ddf02ff15c8ff92f63f6ff4406b1d312e3060807
md5=549517d3e9bcf5533097e4c83f891e2c
Description
uwt provides OCaml bindings for libuv. The main loop of libuv is integrated into lwt, the light-weight cooperative threads library.
README
Uwt
Uwt provides OCaml bindings for libuv - on top of lwt.
- Requests are translated to lwt-threads.
- Callbacks that are called continually are most of the time not translated to the usual lwt semantic.
- naming conventions mirror the conventions of libuv, so you can easily consult the official libuv manual. Only the differences are explained inside
uwt.mli - Uwt is not compatible with
lwt.unix. It's not a furtherLwt_enginein addition toselectandlibev. However, the findlib packageuwt.extprovides alternatives to the higher level modules oflwt.unixwith a nearly identic interface (Uwt_io, Uwt_process, Uwt_log). You can also open the moduleUwt_compat(packageuwt.compat) that provides aliases with module names as found in lwt (e.g.Lwt_maininstead ofUwt.Main). This is necessary, if you want to use the camlp4 syntax extension of lwt. - Uwt is not thread safe. All uwt functions should be called from your main thread.
Installation
Quick install guide
$ opam install uwt
# or for the latest development version
$ opam pin add uwt --dev-repoManual install
Dependencies:
- OCaml 4.02.1 or later
- lwt 2.6.0 or later
- libuv 1.8 or later
Build dependencies:
- pkg-config / pkgconf
- findlib
- omake
- cppo
- ppx_deriving (test only)
- ppx_import (test only)
- ounit (test only)
- autoconf (repo pinning only)
$ omake all
$ omake installlibuv will be compiled locally, if is not already installed on your system. You can also explicity enforce one option:
$ omake all BUILD_LIBUV=true
# or
$ omake all BUILD_LIBUV=false
Dependencies (11)
-
lwt
>= "2.6.0" - result
-
omake
build -
cppo
build & >= "1.3" -
ocamlfind
build -
conf-pkg-config
build - base-bytes
- base-threads
- base-bigarray
- base-unix
-
ocaml
>= "4.02.1" & < "4.12"
Dev Dependencies
None
Optional Dependencies
None
Used by (1)
Conflicts
None
Build status
Results of building uwt with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.3.3 (this version) | bad | n/a | n/a | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure