cross-platform dynamic library loading for ruby
Ruby-FFI is a gem for programmatically loading dynamically-linked native libraries, binding functions within them, and calling those functions from Ruby code. Moreover, a Ruby-FFI extension works without changes on CRuby (MRI), JRuby, Rubinius and TruffleRuby. * Intuitive DSL * Supports all C native types * C structs (also nested), enums and global variables * Callbacks from C to Ruby * Automatic garbage collection of native memory * Usable in Ractor: How-to-use-FFI-in-Ruby-Ractors
Homepage: https://github.com/ffi/ffi
Maintainer: Jeremy Evans <jeremy@openbsd.org>