package ctypes

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

Install

dune-project
 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. argon2
  3. async_ssl >= "v0.15.0"
  4. bimage-unix
  5. binaryen_dsl
  6. bitgenerators
  7. bls12-381-legacy
  8. bls12-381-unix < "1.1.0"
  9. ceph
  10. cf
  11. checked_oint < "0.4.1"
  12. cmark
  13. cmarker
  14. ctypes-build
  15. ctypes-foreign = "0.18.0"
  16. ctypes-zarith
  17. ctypes_stubs_js
  18. cudajit
  19. decompress >= "1.3.0" & < "1.5.3"
  20. directories
  21. dlm >= "0.3.3"
  22. dune >= "3.17.2"
  23. eigen >= "0.1.0"
  24. extism < "1.1.0"
  25. fsevents
  26. gccjit
  27. gdal >= "0.10.0"
  28. gl-legacy
  29. gobject-introspection
  30. gpiod
  31. gr
  32. guile
  33. hacl-star-raw >= "0.3.2"
  34. hardcaml_c
  35. hardcaml_verilator
  36. imguiml
  37. kqueue < "0.2.0"
  38. libdash >= "0.3"
  39. libudev
  40. lilv
  41. llvm >= "3.7"
  42. lp-glpk
  43. lp-gurobi
  44. luv
  45. luv_unix
  46. lz4
  47. mariadb
  48. memcpy >= "0.2.1"
  49. metal
  50. mmdb
  51. mpg123
  52. netlink
  53. opasswd
  54. opencc < "transition"
  55. opencc0
  56. opencc1
  57. opencc1_1
  58. orocksdb
  59. osx-acl
  60. osx-attr
  61. osx-cf
  62. osx-fsevents
  63. osx-membership
  64. osx-mount
  65. osx-secure-transport
  66. osx-xattr
  67. owl >= "0.9.0"
  68. pari
  69. pari-bindings
  70. pci
  71. pg_query
  72. pkcs11-driver
  73. pkcs11-rev
  74. portaudio_c_bindings
  75. posix-base < "4.0.1"
  76. posix-bindings < "3"
  77. posix-errno
  78. posix-getopt >= "2.0.0"
  79. posix-math2
  80. posix-resource
  81. posix-signal
  82. posix-socket
  83. posix-socket-unix
  84. posix-stat
  85. posix-time2
  86. posix-types
  87. posix-uname
  88. posix-unistd
  89. ppx_cstubs >= "0.5.0.1" & != "0.6.0" & != "0.6.1"
  90. py >= "1.1"
  91. quickjs
  92. raygui < "1.5.1"
  93. raylib < "1.5.1"
  94. reed-solomon-erasure
  95. rfc1951 >= "1.3.0"
  96. sanlock
  97. sarek
  98. sattools
  99. sodium < "0.6.0"
  100. spin >= "0.8.0"
  101. spoc
  102. srt < "0.3.4"
  103. swipl
  104. sys-socket
  105. sys-socket-unix
  106. tensorflow
  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"