package uring

Build not checked
  1. Overview
  2. Docs
OCaml bindings for Linux io_uring

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uring-0.2.tbz
sha256=4f1446664ae6091cb6e34688b6ddf384f2b26674ea7e6b6105018a12a2893a21
sha512=0658ce85cdd254aca8605f877ed321e004696943a58ecaba96cc923fee0024084b6cca541669bd4f879cbf1d05deecb01f12652dbce09235880a5de384233dd9

Description

Bindings to the Linux io_uring kernel IO interfaces. See https://github.com/ocaml-multicore/eio for a higher-level API using this.

Added to opam-repository:

README

ocaml-uring -- bindings to Linux io_uring

These are OCaml bindings for the Linux io_uring stack (an alternative to using syscalls such as select or epoll).

The Eio library provides a higher-level effects-based API that uses this library to implement its Linux backend, but ocaml-uring may be useful with single-core non-effects versions of OCaml too.

To use the library directly:

  1. Call Uring.create to initialise a ring.
  2. Add IO requests to the ring using functions such as Uring.readv.
  3. Call Uring.submit to notify the kernel of the new requests.
  4. Call Uring.wait to wait until an operation is complete.

The tests directory contains some examples.

License

This library is released under the ISC license (see LICENSE.md), but note that the repository also vendors liburing - see vendor/liburing/README.

Dependencies (6)

  1. optint >= "0.1.0"
  2. fmt >= "0.8.10"
  3. dune-configurator
  4. ocaml >= "4.12.0"
  5. cstruct >= "6.0.1"
  6. dune >= "2.7"

Dev Dependencies (8)

  1. odoc with-doc
  2. alcotest >= "1.4.0" & with-test
  3. cmdliner with-test
  4. logs with-test & >= "0.5.0"
  5. bechamel >= "0.1.0" & with-test
  6. bechamel-notty >= "0.1.0" & with-test
  7. notty >= "0.2.2" & with-test
  8. lwt with-test & >= "5.0.0"

Optional Dependencies

None

Used by (1)

  1. eio_linux < "0.2"

Conflicts

None

Build status

Results of building uring with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. 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.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
2.15.1 n/a n/a good good good
2.14.0 n/a good good good good
  • 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