package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.14.0.tar.gz
md5=57875f5e5986ca6004c356d77a3b31b5

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: 17 Apr 2018

Dependencies (5)

  1. conf-pkg-config build
  2. ocamlfind build
  3. integers < "0.3.0"
  4. base-bytes
  5. ocaml >= "4.01.0" & < "5.2"

Dev Dependencies (4)

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