OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

ruby34-ffi-1.17.2

cross-platform dynamic library loading for ruby

Back to search · Project homepage

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

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Library

Runtime

Build

Used by (6 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON