package ctypes

Build not checked
  1. Overview
  2. Docs
Combinators for binding to C libraries without writing any C

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.17.1.tar.gz
sha256=41673c2eb93ca99ed3de183bef3e6b436c67a0d902b110be5da158aad922a7e9
md5=508ea062105518c14fd516aa2ea9db5e

Description

ctypes is a library for binding to C libraries using pure OCaml. The primary aim is to 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 or generating any C!

To install the optional ctypes.foreign interface (which uses libffi to provide dynamic access to foreign libraries), you will need to also install the ctypes-foreign optional dependency:

opam install ctypes ctypes-foreign

This will make the ctypes.foreign ocamlfind subpackage available.

Added to opam-repository:

Dependencies (4)

  1. conf-pkg-config build
  2. ocamlfind build
  3. integers >= "0.3.0"
  4. ocaml >= "4.02.3" & < "5.2"

Dev Dependencies (4)

  1. conf-ncurses with-test
  2. ounit with-test
  3. ctypes-foreign with-test
  4. lwt with-test & >= "3.2.0"

Optional Dependencies (2)

  1. mirage-xen
  2. ctypes-foreign

  1. ahrocksdb
  2. argon2
  3. async_ssl < "v0.15.0"
  4. bimage-unix
  5. binaryen_dsl
  6. bitgenerators
  7. bls12-381 < "0.4.1"
  8. bls12-381-unix < "0.4.2"
  9. ceph
  10. cf
  11. checked_oint < "0.4.1"
  12. cmark
  13. cmarker
  14. ctypes-build
  15. ctypes-foreign = "0.18.0"
  16. ctypes-zarith
  17. ctypes_stubs_js
  18. cudajit
  19. directories
  20. dlm
  21. dune >= "3.17.2"
  22. eigen >= "0.1.0"
  23. flock
  24. fsevents
  25. gccjit
  26. gdal
  27. gl-legacy
  28. gobject-introspection
  29. gpiod
  30. gr
  31. hacl-star-raw < "0.4.0"
  32. imguiml
  33. imguiml-raylib
  34. kqueue < "0.2.0"
  35. libdash < "0.3"
  36. libudev
  37. lilv < "0.2.1"
  38. llvm >= "3.7"
  39. lmdb < "1.0"
  40. lp-glpk
  41. lp-gurobi
  42. luv
  43. luv_unix
  44. lz4
  45. mariadb
  46. memcpy >= "0.2.1"
  47. memtrace_viewer < "v0.15.0"
  48. metal
  49. mmdb
  50. mpg123
  51. netlink
  52. ocephes
  53. opasswd
  54. opencc < "transition"
  55. opencc0
  56. opencc1
  57. opencc1_1
  58. orocksdb
  59. osx-acl
  60. osx-attr
  61. osx-cf
  62. osx-fsevents
  63. osx-membership
  64. osx-mount
  65. osx-secure-transport
  66. osx-xattr
  67. owl >= "0.9.0"
  68. pari
  69. pari-bindings
  70. pci
  71. pg_query
  72. pkcs11-driver
  73. pkcs11-rev
  74. portaudio_c_bindings
  75. posix-base < "4.0.1"
  76. posix-bindings < "3"
  77. posix-errno
  78. posix-getopt
  79. posix-math2
  80. posix-resource
  81. posix-signal
  82. posix-socket
  83. posix-socket-unix
  84. posix-stat
  85. posix-time2
  86. posix-types
  87. posix-uname
  88. posix-unistd
  89. ppx_cstubs
  90. py
  91. qcstm >= "0.1.1"
  92. quickjs < "0.5.0"
  93. raygui < "1.5.1"
  94. raylib < "1.5.1"
  95. reed-solomon-erasure
  96. sanlock
  97. sarek
  98. sattools
  99. sodium
  100. spin >= "0.8.0"
  101. spoc
  102. srt < "0.3.4"
  103. sys-socket
  104. sys-socket-unix
  105. tensorflow
  106. tgls < "0.9.0"
  107. torch < "v0.16.0"
  108. tsdl < "1.1.0"
  109. tsdl-image
  110. tsdl-mixer
  111. tsdl-ttf
  112. unix-errno >= "0.4.1"
  113. unix-sys-resource
  114. unix-sys-stat
  115. unix-time
  116. unix-type-representations
  117. uring-trace
  118. wasmer
  119. wasmtime
  120. xedbindings
  121. xxhash
  122. yaml
  123. yara
  124. yices2_bindings
  125. zstandard < "v0.15.0"
  126. zstd

Build status

Results of building ctypes 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
0.24.0 good 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