package ctypes

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.10.3.tar.gz
sha256=c11f87f8d156f2db4139993c33e9932e9e9ea27baf2c69aa709fa5ee55c73a9d
md5=fc8ced9282ddbda2575a5b62b7fc99e6

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: 16 Dec 2016

Dependencies (4)

  1. conf-pkg-config build
  2. ocamlfind build
  3. base-bytes
  4. ocaml >= "4.01.0" & < "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 (95)

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