[ANN] ctypes 0.21.1, now with dune support

I’m happy to announce a new release of ctypes, 0.21.1, available for installation via OPAM.

ctypes is a library for binding to C libraries using pure OCaml, with the primary aim of make writing C extensions as straightforward as possible.

The core of ctypes is a set of combinators for describing the structure of C types – numeric types, arrays, pointers, structs, unions and functions. You can use these combinators to describe the types of the functions that you want to call, then bind directly to those functions – all without writing any C!

The major change in this release is a switch to the dune build system, contributed by Anil Madhavapeddy (@avsm) and Etienne Millon (@emillon). The benefits of this change for users of ctypes are described in the pull request implementing the change; in summary:

With a port to dune, the ctypes library can be embedded in larger dune projects simply by including it in the directory tree of the bigger project.

The release notes have further details of the changes in this release and recent point releases.

13 Likes