package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.9.1.tar.gz
md5=8ddf6772802e5cb7b162c644733b0d76

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 Sep 2016

Dependencies (4)

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

Dev Dependencies (3)

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

Used by (97)

  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. mariadb
  32. memcpy < "0.2.1"
  33. mpg123 < "0.2"
  34. nanomsg
  35. nebula
  36. netlink >= "0.2.1"
  37. ocephes >= "0.8.2"
  38. opasswd >= "1.0.1"
  39. opencc < "transition"
  40. opencc0
  41. opencc1
  42. opencc1_1
  43. oplay
  44. orocksdb
  45. osbx < "1.1.1"
  46. osx-acl
  47. osx-attr >= "0.2.0"
  48. osx-cf >= "0.1.1"
  49. osx-fsevents >= "0.1.1"
  50. osx-mount >= "0.1.1"
  51. osx-secure-transport
  52. osx-xattr >= "0.3.0"
  53. owl < "0.9.0"
  54. pci
  55. pkcs11 < "0.8.0"
  56. pkcs11-driver
  57. portaudio_c_bindings
  58. posix-bindings
  59. posix-getopt
  60. posix-signal
  61. posix-socket
  62. posix-socket-unix
  63. posix-time2
  64. posix-types
  65. posix-uname
  66. protocol-9p < "0.5.1"
  67. qcstm >= "0.1.1"
  68. quickjs
  69. raylib < "0.3.1"
  70. reed-solomon-erasure
  71. sanlock
  72. sarek >= "20210823"
  73. sattools
  74. sodium >= "0.2.0" & < "0.3.0" | >= "0.6.0"
  75. spin >= "0.8.0"
  76. spoc >= "20170724"
  77. srt
  78. sys-socket
  79. sys-socket-unix
  80. tensorflow
  81. tgls >= "0.8.3"
  82. torch < "0.4" | = "0.6"
  83. tsdl >= "0.8.1" & < "0.9.7"
  84. tsdl-image
  85. tsdl-mixer
  86. tsdl-ttf
  87. unix-errno >= "0.4.1" & < "0.6.0"
  88. unix-fcntl >= "0.3.3"
  89. unix-sys-resource
  90. unix-sys-stat
  91. unix-time
  92. unix-type-representations
  93. wasmer
  94. wasmtime
  95. xxhash
  96. zstandard < "v0.13.0"
  97. zstd >= "0.2"