package ctypes
Combinators for binding to C libraries without writing any C
Install
Dune Dependency
Authors
Maintainers
Sources
0.5.0.tar.gz
sha256=d15df8a065b5b9850400727c0e5cb4eb8ad567c3504278b03065cc766b57bf3e
md5=769ee19704664e3c34d9938101c38869
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: 21 Mar 2016
Dependencies (4)
-
conf-pkg-config
build
-
ocamlfind
build
- base-bytes
-
ocaml
>= "4.00.0" & < "4.06"
Dev Dependencies
None
Used by (94)
-
arakoon
>= "1.8.6" & < "1.8.12"
- argon2
-
async_ssl
>= "112.24.02" & != "113.33.07" & < "v0.13.0"
- avroc
- bitgenerators
-
cf
< "0.5.0"
- checked_oint
- cmark
- cmarker
-
ctypes-foreign
= "0.18.0"
- ctypes-zarith
- ctypes_stubs_js
-
directories
< "0.2"
- flock
- fsevents
-
gdal
>= "0.3.0"
- gobject-introspection
-
hacl-star-raw
< "0.4.0"
-
hardcaml-llvmsim
>= "0.3.0"
- hardcaml-vpi
-
iocaml
>= "0.4.3"
-
iocaml-kernel
>= "0.4.4"
-
kqueue
< "0.2.0"
- libudev
- lilv
-
llvm
>= "3.7"
-
lmdb
< "1.0"
-
lp-glpk
< "0.4.0"
- lp-gurobi
-
lz4
>= "1.0.1"
-
memcpy
< "0.2.1"
-
mpg123
< "0.2"
- nanomsg
- nebula
-
netlink
>= "0.2.1"
-
nocrypto
>= "0.3.1" & < "0.5.0"
-
ocephes
< "0.8.2"
-
opasswd
>= "0.9.3"
-
opencc
< "transition"
- opencc0
- opencc1
- opencc1_1
- oplay
- orocksdb
-
osbx
< "1.1.1"
-
osx-attr
< "0.2.0"
- osx-cf
- osx-fsevents
- osx-mount
- osx-secure-transport
-
osx-xattr
< "0.3.0"
-
owl
< "0.9.0"
- pci
- pkcs11-driver
- portaudio_c_bindings
- posix-bindings
- posix-getopt
- posix-signal
- posix-socket
- posix-socket-unix
- posix-time2
- posix-types
- posix-uname
-
protocol-9p
< "0.5.1"
-
qcstm
>= "0.1.1"
- quickjs
-
raylib
< "0.3.1"
- reed-solomon-erasure
- sanlock
-
sarek
>= "20210823"
- sattools
-
sodium
>= "0.2.0" & != "0.3.0" & < "0.6.0"
-
spin
>= "0.8.0"
-
spoc
>= "20170724"
- srt
- sys-socket
- sys-socket-unix
- tensorflow
-
tgls
>= "0.8.3"
-
torch
< "0.4" | = "0.6"
-
tsdl
>= "0.8.1" & < "0.9.1"
- tsdl-image
- tsdl-mixer
- tsdl-ttf
-
unix-errno
< "0.3.0" | >= "0.4.1" & < "0.6.0"
- unix-fcntl
- unix-sys-resource
-
unix-sys-stat
< "0.5.0"
- unix-time
- unix-type-representations
- wasmer
- wasmtime
-
zstandard
< "v0.13.0"
-
zstd
< "0.4"
Conflicts (1)
-
mirage-xen
>= "6.0.0"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page