package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.20.2.tar.gz
md5=cc68949d9cadc57f3682a97348137964

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: 21 Mar 2023

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

Conflicts (1)

  1. mirage-xen >= "6.0.0"