package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.6.1.tar.gz
sha256=e57fdf574022474cd1d9c2dad1af6e9736580e253da2caee1bb6611159572c8f
md5=3d542bfc1743873fc3b72bc0b567dab7

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: 07 Jun 2016

Dependencies (4)

  1. conf-pkg-config build
  2. ocamlfind build
  3. base-bytes
  4. ocaml >= "4.01.0" & < "4.06.0"

Dev Dependencies (1)

  1. lwt with-test & < "4.0.0"

Used by (97)

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

Conflicts (2)

  1. host-system-msvc
  2. mirage-xen >= "6.0.0"
OCaml

Innovation. Community. Security.