package ctypes

Build not checked
  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.

Added to opam-repository:

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"

Optional Dependencies (2)

  1. mirage-xen
  2. ctypes-foreign

Used by (94)

  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. imguiml-raylib
  22. kqueue < "0.2.0"
  23. libudev
  24. lilv < "0.2.1"
  25. llvm >= "3.7"
  26. lmdb < "1.0"
  27. lp-glpk < "0.4.0"
  28. lp-gurobi
  29. lz4
  30. mariadb < "1.2.0"
  31. memcpy < "0.2.1"
  32. mpg123 < "0.2"
  33. netlink
  34. ocephes
  35. opasswd
  36. opencc < "transition"
  37. opencc0
  38. opencc1
  39. opencc1_1
  40. orocksdb
  41. osx-acl
  42. osx-attr
  43. osx-cf
  44. osx-fsevents
  45. osx-membership
  46. osx-mount
  47. osx-secure-transport
  48. osx-xattr
  49. owl < "0.9.0"
  50. pci
  51. pg_query >= "0.9.8"
  52. pkcs11-driver
  53. portaudio_c_bindings
  54. posix-bindings < "3"
  55. posix-errno
  56. posix-getopt
  57. posix-math2
  58. posix-resource
  59. posix-signal
  60. posix-socket
  61. posix-socket-unix
  62. posix-stat
  63. posix-time2
  64. posix-types
  65. posix-uname
  66. posix-unistd
  67. qcstm >= "0.1.1"
  68. quickjs < "0.1.1"
  69. raylib < "0.3.1"
  70. reed-solomon-erasure
  71. sanlock
  72. sarek
  73. sattools
  74. sodium
  75. spin >= "0.8.0"
  76. spoc
  77. sys-socket
  78. sys-socket-unix
  79. tensorflow
  80. tgls < "0.9.0"
  81. torch < "0.4" | = "0.6"
  82. tsdl-image
  83. tsdl-mixer
  84. tsdl-ttf
  85. unix-errno >= "0.4.1" & < "0.6.0"
  86. unix-sys-resource
  87. unix-sys-stat
  88. unix-time
  89. unix-type-representations
  90. uring-trace
  91. wasmer
  92. wasmtime
  93. xxhash
  94. zstd < "0.4"

Build status

Results of building ctypes with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.24.0 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure