package ctypes

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

Install

dune-project
 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"

Used by (99)

  1. ahrocksdb >= "0.2.2"
  2. argon2
  3. bitgenerators
  4. ceph
  5. cf < "0.5.0"
  6. checked_oint < "0.4.1"
  7. cmark
  8. cmarker
  9. ctypes-build
  10. ctypes-foreign = "0.18.0"
  11. ctypes-zarith
  12. ctypes_stubs_js
  13. directories < "0.2"
  14. dlm
  15. dune >= "3.17.2"
  16. flock
  17. fsevents
  18. gdal
  19. gl-legacy
  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 < "0.4.0"
  30. lp-gurobi
  31. lz4
  32. mariadb < "1.2.0"
  33. memcpy >= "0.2.1"
  34. mpg123 < "0.2"
  35. netlink
  36. ocephes
  37. opasswd
  38. opencc < "transition"
  39. opencc0
  40. opencc1
  41. opencc1_1
  42. orocksdb
  43. osx-acl
  44. osx-attr
  45. osx-cf
  46. osx-fsevents
  47. osx-membership
  48. osx-mount
  49. osx-secure-transport
  50. osx-xattr
  51. owl < "0.9.0"
  52. pci
  53. pg_query >= "0.9.8"
  54. pkcs11-driver
  55. portaudio_c_bindings
  56. posix-base < "2.1.0"
  57. posix-bindings < "3"
  58. posix-errno
  59. posix-getopt
  60. posix-math2
  61. posix-resource
  62. posix-signal
  63. posix-socket
  64. posix-socket-unix
  65. posix-stat
  66. posix-time2
  67. posix-types
  68. posix-uname
  69. posix-unistd
  70. qcstm >= "0.1.1"
  71. quickjs < "0.1.1"
  72. raylib < "0.3.1"
  73. reed-solomon-erasure
  74. sanlock
  75. sarek
  76. sattools
  77. sodium
  78. spin >= "0.8.0"
  79. spoc
  80. sys-socket
  81. sys-socket-unix
  82. tensorflow
  83. tgls < "0.9.0"
  84. torch < "v0.16.0"
  85. tsdl-image
  86. tsdl-mixer
  87. tsdl-ttf
  88. unix-errno >= "0.4.1"
  89. unix-sys-resource
  90. unix-sys-stat
  91. unix-time
  92. unix-type-representations
  93. uring-trace
  94. wasmer
  95. wasmtime
  96. xedbindings
  97. xxhash
  98. yices2_bindings
  99. zstd < "0.4"