package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.18.0.tar.gz
sha256=1f30c48f4667f17ea4ab5048b9fd10d090a7fbbf4f1997eb018b656b851340a4
md5=5d9ef3790fda7cd97a8cec08be4b5b61

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: 14 Feb 2021

Dependencies (4)

  1. bigarray-compat
  2. ocamlfind build
  3. integers >= "0.3.0"
  4. 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 >= "v0.15.0"
  5. avroc
  6. bimage-unix
  7. binaryen_dsl
  8. bitgenerators
  9. bls12-381-legacy
  10. bls12-381-unix < "1.1.0"
  11. cf
  12. checked_oint
  13. cmark
  14. cmarker
  15. ctypes-build
  16. ctypes-foreign = "0.18.0"
  17. ctypes-zarith
  18. ctypes_stubs_js
  19. cudajit
  20. decompress >= "1.3.0" & < "1.5.3"
  21. directories
  22. dlm >= "0.3.3"
  23. eigen >= "0.1.0"
  24. eris
  25. extism < "1.1.0"
  26. fsevents
  27. gccjit
  28. gdal >= "0.10.0"
  29. gobject-introspection
  30. gpiod
  31. gr
  32. guile
  33. hacl-star-raw >= "0.3.2"
  34. hardcaml-llvmsim >= "0.3.0"
  35. hardcaml-vpi
  36. hardcaml_c
  37. hardcaml_verilator
  38. imguiml
  39. iocaml-kernel >= "0.4.4"
  40. kqueue < "0.2.0"
  41. libdash >= "0.3"
  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.1" & != "0.6.0" & != "0.6.1"
  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
  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"
  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. wasmer
  129. wasmtime
  130. xedbindings
  131. xxhash
  132. yaml
  133. yara
  134. yices2_bindings
  135. zstandard
  136. zstd >= "0.3"
OCaml

Innovation. Community. Security.