package ctypes

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

Install

Authors

Maintainers

Sources

0.21.1.tar.gz
md5=8b201d932741c5096854e5eb39139b90

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 package.

opam install ctypes-foreign

This will make the ctypes-foreign ocamlfind subpackage available.

Tags

org:mirage

Published: 21 Jul 2023

Dev Dependencies (4)

  1. odoc with-doc
  2. conf-pkg-config with-test
  3. conf-fts with-test & os != "win32"
  4. ounit2 with-test

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

Conflicts

None