🍺 BREW Explorer

← all formulae

libffi

brew install libffi v3.5.2 MIT keg-only

C library that provides a portable interface for calling functions with arguments determined at runtime.

Why you might care

libffi is a low-level dependency used by scripting language interpreters (Python, Ruby, R) and FFI bindings to call C/C++ libraries without writing C wrapper code. It abstracts away platform-specific calling conventions, making it essential for cross-platform dynamic language runtimes. Keg-only because macOS provides its own version.

Categories

Alternatives

cffi ctypes
100.2k
30-day installs · #41
288.3k
90-day · #53
849.1k
365-day · #71

Links

Keg-only reason

:provided_by_macos

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "cffi",
    "ctypes"
  ],
  "build_dependencies": [],
  "categories": [
    "library",
    "binding"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Portable Foreign Function Interface library",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:40:37+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libffi",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://sourceware.org/libffi/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "libffi",
  "installs_30d": 100193,
  "installs_365d": 849084,
  "installs_90d": 288264,
  "keg_only": 1,
  "keg_only_reason": ":provided_by_macos",
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:42:18+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libffi",
  "oldnames": [],
  "one_liner": "C library that provides a portable interface for calling functions with arguments determined at runtime.",
  "optional_dependencies": [],
  "rank_30d": 41,
  "rank_365d": 71,
  "rank_90d": 53,
  "raw_hash": "d0386bc80c4ee95d",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libffi.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "3.5.2",
  "versioned_formulae": [],
  "why_use_this": "libffi is a low-level dependency used by scripting language interpreters (Python, Ruby, R) and FFI bindings to call C/C++ libraries without writing C wrapper code. It abstracts away platform-specific calling conventions, making it essential for cross-platform dynamic language runtimes. Keg-only because macOS provides its own version."
}