package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.16.0.tar.gz
md5=31d4f2072abd74e99ed8d70f934e3718

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