package ctypes

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

Install

Dune 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"

  1. arakoon >= "1.8.6" & < "1.8.12"
  2. argon2
  3. async_ssl >= "113.33.07" & < "v0.13.0"
  4. avroc
  5. bitgenerators
  6. ceph
  7. cf < "0.5.0"
  8. checked_oint
  9. cmark
  10. cmarker
  11. ctypes-build
  12. ctypes-foreign = "0.18.0"
  13. ctypes-zarith
  14. ctypes_stubs_js
  15. directories < "0.2"
  16. eigen < "0.0.5"
  17. flock
  18. fsevents
  19. gdal >= "0.3.0"
  20. gobject-introspection
  21. hacl-star-raw < "0.4.0"
  22. hardcaml-llvmsim >= "0.3.0"
  23. hardcaml-vpi
  24. imguiml
  25. iocaml >= "0.4.3"
  26. iocaml-kernel >= "0.4.4"
  27. kqueue < "0.2.0"
  28. libudev
  29. lilv
  30. llvm >= "3.7"
  31. lmdb < "1.0"
  32. lp-glpk < "0.4.0"
  33. lp-gurobi
  34. lz4 >= "1.1.1"
  35. mariadb
  36. memcpy < "0.2.1"
  37. mpg123 < "0.2"
  38. nanomsg
  39. nebula
  40. netlink >= "0.2.1"
  41. ocephes >= "0.8.2"
  42. opasswd >= "1.0.1"
  43. opencc < "transition"
  44. opencc0
  45. opencc1
  46. opencc1_1
  47. oplay
  48. orocksdb
  49. osbx < "1.1.1"
  50. osx-acl
  51. osx-attr >= "0.2.0"
  52. osx-cf >= "0.1.1"
  53. osx-fsevents >= "0.1.1"
  54. osx-membership
  55. osx-mount >= "0.1.1"
  56. osx-secure-transport
  57. osx-xattr >= "0.3.0"
  58. owl < "0.9.0"
  59. pci
  60. pkcs11 < "0.8.0"
  61. pkcs11-driver
  62. portaudio_c_bindings
  63. posix-bindings
  64. posix-getopt
  65. posix-signal
  66. posix-socket
  67. posix-socket-unix
  68. posix-time2
  69. posix-types
  70. posix-uname
  71. protocol-9p < "0.5.1"
  72. qcstm >= "0.1.1"
  73. quickjs
  74. raylib < "0.3.1"
  75. reed-solomon-erasure
  76. sanlock
  77. sarek >= "20210823"
  78. sattools
  79. sodium >= "0.2.0" & < "0.3.0" | >= "0.6.0"
  80. spin >= "0.8.0"
  81. spoc >= "20170724"
  82. srt
  83. sys-socket
  84. sys-socket-unix
  85. tensorflow
  86. tgls >= "0.8.3"
  87. torch < "0.4" | = "0.6"
  88. tsdl >= "0.8.1" & < "0.9.7"
  89. tsdl-image
  90. tsdl-mixer
  91. tsdl-ttf
  92. unix-errno >= "0.4.1" & < "0.6.0"
  93. unix-fcntl >= "0.3.3"
  94. unix-sys-resource
  95. unix-sys-stat
  96. unix-time
  97. unix-type-representations
  98. uring-trace
  99. wasmer
  100. wasmtime
  101. xxhash
  102. zstandard < "v0.13.0"
  103. zstd >= "0.2" & < "0.4"
OCaml

Innovation. Community. Security.