cross-platform dynamic library loading for ruby
Project homepage: https://github.com/ffi/ffi
Description
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
Package information
- Ports path
- devel/ruby-ffi,ruby34
- Package architecture
- amd64
- Maintainer
- Jeremy Evans <jeremy@openbsd.org>
- Categories
- devel, lang/ruby
- Available flavors
- ruby33, ruby34, ruby40
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Library
Runtime
Build
Used by (6 dependency relationships)
Includes library, runtime, build and test dependencies.