package ctypes

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

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

Conflicts (2)

  1. host-system-msvc
  2. mirage-xen >= "6.0.0"