package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.19.1.tar.gz
sha256=2ea4e2433f4faaf423fa4b3a60baf112187212598d8deea42da1bc0468ee0617
md5=ceb891ec568fd7da76c31af270a2afe2

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: 26 Jun 2021

Dependencies (4)

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

Innovation. Community. Security.