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"

  1. ahrocksdb >= "0.2.2"
  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. gl-legacy
  21. gobject-introspection
  22. hacl-star-raw < "0.4.0"
  23. imguiml
  24. kqueue < "0.2.0"
  25. libdash < "0.3"
  26. libudev
  27. lilv
  28. llvm >= "3.7"
  29. lmdb < "1.0"
  30. lp-glpk < "0.4.0"
  31. lp-gurobi
  32. lz4
  33. mariadb < "1.2.0"
  34. memcpy >= "0.2.1"
  35. mpg123 < "0.2"
  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. pci
  54. pg_query >= "0.9.8"
  55. pkcs11-driver
  56. portaudio_c_bindings
  57. posix-base < "2.1.0"
  58. posix-bindings < "3"
  59. posix-errno
  60. posix-getopt
  61. posix-math2
  62. posix-resource
  63. posix-signal
  64. posix-socket
  65. posix-socket-unix
  66. posix-stat
  67. posix-time2
  68. posix-types
  69. posix-uname
  70. posix-unistd
  71. qcstm >= "0.1.1"
  72. quickjs < "0.1.1"
  73. raylib < "0.3.1"
  74. reed-solomon-erasure
  75. sanlock
  76. sarek
  77. sattools
  78. sodium
  79. spin >= "0.8.0"
  80. spoc
  81. sys-socket
  82. sys-socket-unix
  83. tensorflow
  84. tgls < "0.9.0"
  85. torch < "v0.16.0"
  86. tsdl-image
  87. tsdl-mixer
  88. tsdl-ttf
  89. unix-errno >= "0.4.1"
  90. unix-sys-resource
  91. unix-sys-stat
  92. unix-time
  93. unix-type-representations
  94. uring-trace
  95. wasmer
  96. wasmtime
  97. xedbindings
  98. xxhash
  99. yices2_bindings
  100. zstandard < "v0.13.0"
  101. zstd < "0.4"