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.20.1.tar.gz
sha256=78bf1acbc152a2e455a452e72eb75c3d4cefa366f2708cced3e7fe24b6278ec7
md5=91211baac16cb43134b1d6009b1edf92

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

Conflicts (2)

  1. host-system-msvc
  2. mirage-xen >= "6.0.0"

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