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 (99)

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