package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.12.0.tar.gz
sha256=a4f78e9b3ed71f3cba0ccdcfa0690f423dedee6132611cd4be0534b43c980ca3
md5=59e8b3f328ba00febabe2a957029cb94

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: 23 May 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 (95)

  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. 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-bindings < "3"
  57. posix-getopt
  58. posix-math2
  59. posix-signal
  60. posix-socket
  61. posix-socket-unix
  62. posix-time2
  63. posix-types
  64. posix-uname
  65. qcstm >= "0.1.1"
  66. quickjs < "0.1.1"
  67. raylib < "0.3.1"
  68. reed-solomon-erasure
  69. sanlock
  70. sarek
  71. sattools
  72. sodium
  73. spin >= "0.8.0"
  74. spoc
  75. sys-socket
  76. sys-socket-unix
  77. tensorflow
  78. tgls < "0.9.0"
  79. torch < "v0.16.0"
  80. tsdl-image
  81. tsdl-mixer
  82. tsdl-ttf
  83. unix-errno >= "0.4.1"
  84. unix-sys-resource
  85. unix-sys-stat
  86. unix-time
  87. unix-type-representations
  88. uring-trace
  89. wasmer
  90. wasmtime
  91. xedbindings
  92. xxhash
  93. yices2_bindings
  94. zstandard < "v0.13.0"
  95. zstd < "0.4"
OCaml

Innovation. Community. Security.