package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.11.1.tar.gz
md5=4c44181a7d19c911d57485a179ab1713

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: 26 Nov 2016

Dependencies (4)

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

Dev Dependencies (3)

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

  1. arakoon >= "1.8.6" & < "1.8.12"
  2. argon2
  3. async_ssl >= "113.33.07" & < "v0.13.0"
  4. avroc
  5. bitgenerators
  6. cf < "0.5.0"
  7. checked_oint
  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. eigen < "0.0.5"
  17. flock
  18. fsevents
  19. gdal >= "0.3.0"
  20. gobject-introspection
  21. hacl-star-raw < "0.4.0"
  22. hardcaml-llvmsim >= "0.3.0"
  23. hardcaml-vpi
  24. iocaml >= "0.4.3"
  25. iocaml-kernel >= "0.4.4"
  26. kqueue < "0.2.0"
  27. libudev
  28. lilv
  29. llvm >= "3.7"
  30. lmdb < "1.0"
  31. lp-glpk < "0.4.0"
  32. lp-gurobi
  33. lz4 >= "1.1.1"
  34. mariadb
  35. memcpy < "0.2.1"
  36. mpg123 < "0.2"
  37. nanomsg
  38. nebula
  39. netlink >= "0.2.1"
  40. ocephes >= "0.8.2"
  41. opasswd >= "1.0.1"
  42. opencc < "transition"
  43. opencc0
  44. opencc1
  45. opencc1_1
  46. oplay
  47. orocksdb
  48. osbx < "1.1.1"
  49. osx-acl
  50. osx-attr >= "0.2.0"
  51. osx-cf >= "0.1.1"
  52. osx-fsevents >= "0.1.1"
  53. osx-membership
  54. osx-mount >= "0.1.1"
  55. osx-secure-transport
  56. osx-xattr >= "0.3.0"
  57. owl < "0.9.0"
  58. pci
  59. pkcs11 < "0.9.0"
  60. pkcs11-driver
  61. portaudio_c_bindings
  62. posix-bindings
  63. posix-getopt
  64. posix-signal
  65. posix-socket
  66. posix-socket-unix
  67. posix-time2
  68. posix-types
  69. posix-uname
  70. protocol-9p < "0.5.1"
  71. qcstm >= "0.1.1"
  72. quickjs
  73. raylib < "0.3.1"
  74. reed-solomon-erasure
  75. sanlock
  76. sarek >= "20210823"
  77. sattools
  78. sodium >= "0.2.0" & < "0.3.0" | >= "0.6.0"
  79. spin >= "0.8.0"
  80. spoc >= "20170724"
  81. srt
  82. sys-socket
  83. sys-socket-unix
  84. tensorflow
  85. tgls >= "0.8.3"
  86. torch < "v0.16.0"
  87. tsdl >= "0.8.1" & < "0.9.7"
  88. tsdl-image
  89. tsdl-mixer
  90. tsdl-ttf
  91. unix-errno >= "0.4.1" & < "0.6.0"
  92. unix-fcntl >= "0.3.3"
  93. unix-sys-resource
  94. unix-sys-stat
  95. unix-time
  96. unix-type-representations
  97. wasmer
  98. wasmtime
  99. xxhash
  100. zstandard < "v0.13.0"
  101. zstd >= "0.2" & < "0.4"