package ctypes

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.5.1.tar.gz
sha256=51da7276abccb274fd09fda9d024a3469b819d534492afe9c8d549dd953114ec
md5=92774c91b1dbc1b31a59a78cdb96611b

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: 02 May 2016

Dependencies (4)

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

Dev Dependencies

None

Used by (96)

  1. arakoon >= "1.8.6" & < "1.8.12"
  2. argon2
  3. async_ssl >= "112.24.02" & != "113.33.07" & < "v0.13.0"
  4. avroc
  5. bitgenerators
  6. cf < "0.5.0"
  7. checked_oint
  8. cmark
  9. cmarker
  10. ctypes-foreign = "0.18.0"
  11. ctypes-zarith
  12. ctypes_stubs_js
  13. directories < "0.2"
  14. flock
  15. fsevents
  16. gdal >= "0.3.0"
  17. gobject-introspection
  18. hacl-star-raw < "0.4.0"
  19. hardcaml-llvmsim >= "0.3.0"
  20. hardcaml-vpi
  21. imguiml
  22. iocaml >= "0.4.3"
  23. iocaml-kernel >= "0.4.4"
  24. kqueue < "0.2.0"
  25. libudev
  26. lilv
  27. llvm >= "3.7"
  28. lmdb < "1.0"
  29. lp-glpk < "0.4.0"
  30. lp-gurobi
  31. lz4 >= "1.0.1"
  32. memcpy < "0.2.1"
  33. mpg123 < "0.2"
  34. nanomsg
  35. nebula
  36. netlink >= "0.2.1"
  37. nocrypto >= "0.3.1" & < "0.5.0"
  38. ocephes < "0.8.2"
  39. opasswd >= "0.9.3"
  40. opencc < "transition"
  41. opencc0
  42. opencc1
  43. opencc1_1
  44. oplay
  45. orocksdb
  46. osbx < "1.1.1"
  47. osx-attr < "0.2.0"
  48. osx-cf
  49. osx-fsevents
  50. osx-mount
  51. osx-secure-transport
  52. osx-xattr < "0.3.0"
  53. owl < "0.9.0"
  54. pci
  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.3.0" | >= "0.4.1" & < "0.6.0"
  87. unix-fcntl
  88. unix-sys-resource
  89. unix-sys-stat < "0.5.0"
  90. unix-time
  91. unix-type-representations
  92. uring-trace
  93. wasmer
  94. wasmtime
  95. zstandard < "v0.13.0"
  96. zstd < "0.4"

Conflicts (2)

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

Innovation. Community. Security.