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
sha256=2ea4e2433f4faaf423fa4b3a60baf112187212598d8deea42da1bc0468ee0617
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. ceph
  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. cudajit
  19. decompress >= "1.3.0" & < "1.5.3"
  20. directories
  21. dlm >= "0.3.3"
  22. eigen >= "0.1.0"
  23. eris
  24. extism < "1.1.0"
  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. imguiml
  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.0.2" & < "0.6.0" | >= "0.6.1.2"
  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 < "0.3.1"
  108. swipl
  109. sys-socket
  110. sys-socket-unix
  111. tensorflow
  112. tezos-hacl
  113. tezos-hacl-glue-unix < "11.0"
  114. tezos-sapling >= "11.1"
  115. tezos-wasmer
  116. tgls >= "0.8.3"
  117. torch
  118. tsdl >= "0.8.1" & < "1.1.0"
  119. tsdl-image >= "0.3.0"
  120. tsdl-mixer
  121. tsdl-ttf >= "0.3"
  122. unix-errno >= "0.4.1" & < "0.5.0" | >= "0.6.0"
  123. unix-fcntl >= "0.3.3"
  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. xxhash
  133. yaml
  134. yara
  135. yices2_bindings
  136. zstandard
  137. zstd >= "0.3"
OCaml

Innovation. Community. Security.