package ctypes

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

Install

Authors

Maintainers

Sources

0.20.1.tar.gz
md5=91211baac16cb43134b1d6009b1edf92

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: 31 Mar 2022

Dependencies (4)

  1. bigarray-compat
  2. ocamlfind build
  3. integers >= "0.3.0"
  4. ocaml >= "4.03.0"

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

Conflicts (1)

  1. mirage-xen >= "6.0.0"