package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.12.1.tar.gz
sha256=127298c14af89625ebd300c08420e8629df98ebcff016fe6c1d0d106a0542810
md5=4dd798e84b93cd97fbd605d023a0a707

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

Innovation. Community. Security.