package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.15.0.tar.gz
md5=cf151f2713bda6ce5e43124f5f57a6b7

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: 23 Jul 2019

Dependencies (5)

  1. conf-pkg-config build
  2. ocamlfind build
  3. integers >= "0.3.0"
  4. base-bytes
  5. ocaml >= "4.02.3" & < "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 >= "113.33.07" & < "v0.13.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. directories < "0.2"
  18. dlm
  19. eigen
  20. eris
  21. flock
  22. fsevents
  23. gccjit
  24. gdal >= "0.3.0"
  25. gobject-introspection
  26. gr
  27. hacl-star-raw < "0.4.0"
  28. hardcaml-llvmsim >= "0.3.0"
  29. hardcaml-vpi
  30. iocaml >= "0.4.3"
  31. iocaml-kernel >= "0.4.4"
  32. kqueue < "0.2.0"
  33. libdash < "0.3"
  34. libudev
  35. lilv
  36. llvm >= "3.7"
  37. lmdb < "1.0"
  38. lp-glpk
  39. lp-gurobi
  40. luv
  41. luv_unix
  42. lz4 >= "1.1.1"
  43. mariadb
  44. memcpy >= "0.2.1"
  45. mmdb
  46. monocypher
  47. mpg123
  48. nanomsg
  49. nebula
  50. netlink >= "0.2.1"
  51. ocephes >= "0.8.2"
  52. opasswd >= "1.0.1"
  53. opencc < "transition"
  54. opencc0
  55. opencc1
  56. opencc1_1
  57. oplay
  58. orocksdb
  59. osbx < "1.1.1"
  60. osx-acl
  61. osx-attr >= "0.2.0"
  62. osx-cf >= "0.1.1"
  63. osx-fsevents >= "0.1.1"
  64. osx-membership
  65. osx-mount >= "0.1.1"
  66. osx-secure-transport
  67. osx-xattr >= "0.3.0"
  68. owl < "0.9.0"
  69. pari
  70. pari-bindings
  71. pci
  72. pg_query
  73. pkcs11 < "0.9.0"
  74. pkcs11-driver
  75. pkcs11-rev
  76. portaudio_c_bindings
  77. portmidi
  78. posix-base
  79. posix-bindings
  80. posix-getopt
  81. posix-signal
  82. posix-socket
  83. posix-socket-unix
  84. posix-time2
  85. posix-types
  86. posix-uname
  87. ppx_cstubs != "0.2.0"
  88. protocol-9p < "0.5.1"
  89. py
  90. qcstm >= "0.1.1"
  91. quickjs
  92. raygui
  93. raylib
  94. reed-solomon-erasure
  95. sanlock
  96. sarek >= "20210823"
  97. sattools
  98. sodium >= "0.2.0" & < "0.3.0" | >= "0.6.0"
  99. spin >= "0.8.0"
  100. spoc >= "20170724"
  101. srt
  102. sys-socket
  103. sys-socket-unix
  104. tensorflow
  105. tgls >= "0.8.3"
  106. torch < "v0.16.0"
  107. tsdl >= "0.8.1"
  108. tsdl-image
  109. tsdl-mixer
  110. tsdl-ttf
  111. unix-errno >= "0.4.1"
  112. unix-fcntl >= "0.3.3"
  113. unix-sys-resource
  114. unix-sys-stat
  115. unix-time
  116. unix-type-representations
  117. wasmer
  118. wasmtime
  119. xxhash
  120. yaml
  121. yara
  122. yices2_bindings
  123. zstandard < "v0.14.0"
  124. zstd >= "0.2"