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. hegel
  42. imguiml
  43. kqueue < "0.2.0"
  44. libdash = "0.3"
  45. libirmin
  46. libudev
  47. lilv
  48. llvm >= "3.7"
  49. lp-glpk
  50. lp-gurobi
  51. luv
  52. luv_unix
  53. lz4
  54. mariadb
  55. memcpy >= "0.2.1"
  56. metal
  57. mmdb
  58. mpg123
  59. netlink
  60. opasswd
  61. opencc < "transition"
  62. opencc0
  63. opencc1
  64. opencc1_1
  65. orocksdb
  66. osx-acl
  67. osx-attr
  68. osx-cf
  69. osx-fsevents
  70. osx-membership
  71. osx-mount
  72. osx-secure-transport
  73. osx-xattr
  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. posix-base < "4.0.1"
  83. posix-bindings < "3"
  84. posix-errno
  85. posix-getopt >= "2.0.0"
  86. posix-math2
  87. posix-resource
  88. posix-signal
  89. posix-socket
  90. posix-socket-unix
  91. posix-stat
  92. posix-time2
  93. posix-types
  94. posix-uname
  95. posix-unistd
  96. ppx_cstubs = "0.5.1" | >= "0.7.0"
  97. py >= "1.1"
  98. quickjs < "0.5.1"
  99. raygui < "1.5.1"
  100. raylib < "1.5.1"
  101. reed-solomon-erasure
  102. rfc1951 >= "1.3.0" & < "1.6.0"
  103. sanlock
  104. sarek
  105. sattools
  106. sodium < "0.6.0"
  107. spin >= "0.8.0"
  108. spoc
  109. srt < "0.3.4"
  110. stk_iconv
  111. swipl
  112. sys-socket
  113. sys-socket-unix
  114. tensorflow
  115. tgls < "0.9.0"
  116. torch
  117. tsdl < "1.1.0"
  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-sys-resource
  123. unix-sys-stat
  124. unix-time
  125. unix-type-representations >= "0.1.1"
  126. uring-trace
  127. wasmer
  128. wasmtime
  129. xedbindings
  130. xxhash
  131. yaml
  132. yara
  133. yices2_bindings
  134. zstandard
  135. zstd >= "0.3"

Conflicts (2)

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