package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.13.1.tar.gz
sha256=55cc0635c4227c9a347e0fc17137fc6550776536c3264fb4954c7e304bbe809f
md5=0e1b70d28b5b9adc8c4596d9f4dff5b9

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: 21 Nov 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
  2. argon2
  3. async_ssl < "v0.13.0"
  4. bitgenerators
  5. ceph
  6. cf < "0.5.0"
  7. checked_oint < "0.4.1"
  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. dune >= "3.17.2"
  17. flock
  18. fsevents
  19. gdal
  20. gobject-introspection
  21. hacl-star-raw < "0.4.0"
  22. imguiml
  23. kqueue < "0.2.0"
  24. libdash < "0.3"
  25. libudev
  26. lilv
  27. llvm >= "3.7"
  28. lmdb < "1.0"
  29. lp-glpk
  30. lp-gurobi
  31. luv < "0.5.9"
  32. lz4
  33. mariadb
  34. memcpy >= "0.2.1"
  35. mpg123
  36. netlink
  37. ocephes
  38. opasswd
  39. opencc < "transition"
  40. opencc0
  41. opencc1
  42. opencc1_1
  43. orocksdb
  44. osx-acl
  45. osx-attr
  46. osx-cf
  47. osx-fsevents
  48. osx-membership
  49. osx-mount
  50. osx-secure-transport
  51. osx-xattr
  52. owl < "0.9.0"
  53. pari
  54. pari-bindings
  55. pci
  56. pg_query >= "0.9.8"
  57. pkcs11-driver
  58. portaudio_c_bindings
  59. portmidi
  60. posix-base < "2.1.0"
  61. posix-bindings < "3"
  62. posix-getopt
  63. posix-math2
  64. posix-signal
  65. posix-socket
  66. posix-socket-unix
  67. posix-time2
  68. posix-types
  69. posix-uname
  70. ppx_cstubs
  71. py
  72. qcstm >= "0.1.1"
  73. quickjs
  74. raylib < "0.3.1"
  75. reed-solomon-erasure
  76. sanlock
  77. sarek
  78. sattools
  79. sodium
  80. spin >= "0.8.0"
  81. spoc
  82. sys-socket
  83. sys-socket-unix
  84. tensorflow
  85. tgls < "0.9.0"
  86. torch < "v0.16.0"
  87. tsdl-image
  88. tsdl-mixer
  89. tsdl-ttf
  90. unix-errno >= "0.4.1"
  91. unix-sys-resource
  92. unix-sys-stat
  93. unix-time
  94. unix-type-representations
  95. uring-trace
  96. wasmer
  97. wasmtime
  98. xedbindings
  99. xxhash
  100. yaml < "2.1.0"
  101. yara
  102. yices2_bindings
  103. zstandard < "v0.13.0"
  104. zstd
OCaml

Innovation. Community. Security.