package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.20.0.tar.gz
md5=e286bc69e536e581529f01059dd4bbb3

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.

Published: 10 Dec 2021

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"

  1. ahrocksdb
  2. arakoon >= "1.8.6" & < "1.8.12"
  3. argon2
  4. arrayjit
  5. async_ssl >= "v0.15.0"
  6. avroc
  7. bimage-unix
  8. binaryen_dsl
  9. bitgenerators
  10. cf
  11. checked_oint
  12. cmark
  13. cmarker
  14. ctypes-build
  15. ctypes-foreign = "0.18.0"
  16. ctypes-zarith
  17. ctypes_stubs_js
  18. decompress >= "1.3.0" & < "1.5.3"
  19. directories
  20. dlm >= "0.3.3"
  21. eigen >= "0.1.0"
  22. eris
  23. extism < "1.1.0"
  24. fsevents
  25. gccjit
  26. gdal >= "0.10.0"
  27. gobject-introspection
  28. gpiod
  29. gr
  30. guile
  31. hacl-star-raw >= "0.3.2"
  32. hardcaml-llvmsim >= "0.3.0"
  33. hardcaml-vpi
  34. hardcaml_c
  35. hardcaml_verilator
  36. iocaml-kernel >= "0.4.4"
  37. kqueue < "0.2.0"
  38. libdash >= "0.3"
  39. libirmin
  40. libudev
  41. lilv
  42. llvm >= "3.7"
  43. lp-glpk
  44. lp-gurobi
  45. luv
  46. luv_unix
  47. lz4 >= "1.1.1"
  48. mariadb >= "1.1.2"
  49. memcpy >= "0.2.1"
  50. mmdb
  51. monocypher
  52. mpg123
  53. nanomsg
  54. nebula
  55. netlink >= "0.2.1"
  56. octez-l2-libs
  57. octez-libs
  58. opasswd >= "1.3.1"
  59. opencc < "transition"
  60. opencc0
  61. opencc1
  62. opencc1_1
  63. orocksdb
  64. osbx < "1.1.1"
  65. osx-acl
  66. osx-attr >= "0.2.0"
  67. osx-cf >= "0.1.1"
  68. osx-fsevents >= "0.1.1"
  69. osx-membership
  70. osx-mount >= "0.1.1"
  71. osx-secure-transport
  72. osx-xattr >= "0.3.0"
  73. owl >= "0.9.0"
  74. pari
  75. pari-bindings
  76. pci
  77. pg_query
  78. pkcs11-driver
  79. pkcs11-rev
  80. portaudio_c_bindings
  81. portmidi
  82. posix-base
  83. posix-bindings
  84. posix-getopt >= "2.0.0"
  85. posix-signal
  86. posix-socket
  87. posix-socket-unix
  88. posix-time2
  89. posix-types
  90. posix-uname
  91. ppx_cstubs = "0.5.1" | >= "0.7.0"
  92. protocol-9p < "0.5.1"
  93. py >= "1.1"
  94. quickjs
  95. raygui
  96. raylib
  97. reed-solomon-erasure
  98. rfc1951 >= "1.3.0"
  99. sanlock
  100. sarek >= "20210823"
  101. sattools
  102. sodium >= "0.2.0" & < "0.3.0"
  103. spin >= "0.8.0"
  104. spoc >= "20170724"
  105. srt
  106. swipl
  107. sys-socket
  108. sys-socket-unix
  109. tensorflow
  110. tezos-hacl
  111. tezos-hacl-glue-unix < "11.0"
  112. tezos-sapling >= "11.1"
  113. tezos-wasmer
  114. tgls >= "0.8.3"
  115. torch
  116. tsdl >= "0.8.1"
  117. tsdl-image >= "0.3.0"
  118. tsdl-mixer
  119. tsdl-ttf >= "0.3"
  120. unix-errno >= "0.4.1" & < "0.5.0" | >= "0.6.0"
  121. unix-fcntl >= "0.3.3"
  122. unix-sys-resource
  123. unix-sys-stat
  124. unix-time
  125. unix-type-representations >= "0.1.1"
  126. wasmer
  127. wasmtime
  128. xxhash
  129. yaml
  130. yara
  131. yices2_bindings
  132. zstandard
  133. zstd >= "0.3"

Conflicts (1)

  1. mirage-xen >= "6.0.0"