package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.19.1.tar.gz
md5=ceb891ec568fd7da76c31af270a2afe2

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

Innovation. Community. Security.