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. portmidi < "0.4"
  61. posix-base < "2.1.0"
  62. posix-bindings < "3"
  63. posix-getopt
  64. posix-math2
  65. posix-signal
  66. posix-socket
  67. posix-socket-unix
  68. posix-time2
  69. posix-types
  70. posix-uname
  71. ppx_cstubs
  72. py
  73. qcstm >= "0.1.1"
  74. quickjs
  75. raylib < "0.3.1"
  76. reed-solomon-erasure
  77. sanlock
  78. sarek
  79. sattools
  80. sodium
  81. spin >= "0.8.0"
  82. spoc
  83. sys-socket
  84. sys-socket-unix
  85. tensorflow
  86. tgls < "0.9.0"
  87. torch < "v0.16.0"
  88. tsdl-image
  89. tsdl-mixer
  90. tsdl-ttf
  91. unix-errno >= "0.4.1"
  92. unix-sys-resource
  93. unix-sys-stat
  94. unix-time
  95. unix-type-representations
  96. uring-trace
  97. wasmer
  98. wasmtime
  99. xedbindings
  100. xxhash
  101. yaml < "2.1.0"
  102. yara
  103. yices2_bindings
  104. zstandard < "v0.13.0"
  105. zstd