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.4.tar.gz
sha256=af968e9f47071574c08387d8701160543288c2f85f57ac8085807b2d6bd1368f
md5=846f9ce0638e9a2046a4771a4c47c2d8

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: 09 May 2017

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 (93)

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