package ctypes

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.13.1.tar.gz
sha256=55cc0635c4227c9a347e0fc17137fc6550776536c3264fb4954c7e304bbe809f
md5=0e1b70d28b5b9adc8c4596d9f4dff5b9

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: 21 Nov 2017

Dependencies (5)

  1. conf-pkg-config build
  2. ocamlfind build
  3. integers < "0.3.0"
  4. base-bytes
  5. ocaml >= "4.01.0" & < "5.2"

Dev Dependencies (4)

  1. conf-ncurses with-test
  2. ctypes-foreign with-test
  3. ounit with-test
  4. lwt with-test & >= "2.4.7" & < "4.0.0"

  1. ahrocksdb
  2. argon2
  3. async_ssl < "v0.13.0"
  4. bitgenerators
  5. ceph
  6. cf < "0.5.0"
  7. checked_oint < "0.4.1"
  8. cmark
  9. cmarker
  10. ctypes-build
  11. ctypes-foreign = "0.18.0"
  12. ctypes-zarith
  13. ctypes_stubs_js
  14. directories < "0.2"
  15. dlm
  16. dune >= "3.17.2"
  17. flock
  18. fsevents
  19. gdal
  20. gl-legacy
  21. gobject-introspection
  22. hacl-star-raw < "0.4.0"
  23. imguiml
  24. kqueue < "0.2.0"
  25. libdash < "0.3"
  26. libudev
  27. lilv
  28. llvm >= "3.7"
  29. lmdb < "1.0"
  30. lp-glpk
  31. lp-gurobi
  32. luv < "0.5.9"
  33. lz4
  34. mariadb
  35. memcpy >= "0.2.1"
  36. mpg123
  37. netlink
  38. ocephes
  39. opasswd
  40. opencc < "transition"
  41. opencc0
  42. opencc1
  43. opencc1_1
  44. orocksdb
  45. osx-acl
  46. osx-attr
  47. osx-cf
  48. osx-fsevents
  49. osx-membership
  50. osx-mount
  51. osx-secure-transport
  52. osx-xattr
  53. owl < "0.9.0"
  54. pari
  55. pari-bindings
  56. pci
  57. pg_query >= "0.9.8"
  58. pkcs11-driver
  59. portaudio_c_bindings
  60. posix-base < "2.1.0"
  61. posix-bindings < "3"
  62. posix-errno
  63. posix-getopt
  64. posix-math2
  65. posix-resource
  66. posix-signal
  67. posix-socket
  68. posix-socket-unix
  69. posix-stat
  70. posix-time2
  71. posix-types
  72. posix-uname
  73. posix-unistd
  74. ppx_cstubs
  75. py
  76. qcstm >= "0.1.1"
  77. quickjs
  78. raylib < "0.3.1"
  79. reed-solomon-erasure
  80. sanlock
  81. sarek
  82. sattools
  83. sodium
  84. spin >= "0.8.0"
  85. spoc
  86. sys-socket
  87. sys-socket-unix
  88. tensorflow
  89. tgls < "0.9.0"
  90. torch < "v0.16.0"
  91. tsdl-image
  92. tsdl-mixer
  93. tsdl-ttf
  94. unix-errno >= "0.4.1"
  95. unix-sys-resource
  96. unix-sys-stat
  97. unix-time
  98. unix-type-representations
  99. uring-trace
  100. wasmer
  101. wasmtime
  102. xedbindings
  103. xxhash
  104. yaml < "2.1.0"
  105. yara
  106. yices2_bindings
  107. zstandard < "v0.13.0"
  108. zstd