package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.6.1.tar.gz
md5=3d542bfc1743873fc3b72bc0b567dab7

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: 07 Jun 2016

Dependencies (4)

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

Dev Dependencies (1)

  1. lwt with-test & < "4.0.0"

Used by (93)

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

Conflicts (1)

  1. mirage-xen >= "6.0.0"