# alexcrichton/rust-ffi-examples

FFI examples written in Rust

Repository: https://github.com/alexcrichton/rust-ffi-examples
Canonical: https://ross.abutalabs.com/products/rust-ffi-examples
Language: Makefile
License Family: other
Archived: true
Last push: 2020-03-02T19:42:52+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4154, "days_push": 2375, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1248, forks 183 (observed 2026-08-28T04:04:07.683852+00:00)

## What it is
A collection of example projects demonstrating how to interface Rust with other languages via FFI (foreign function interfaces). It covers calling Rust from languages like C, Python, Ruby, and Node.js.

## Use cases
- learn how to call Rust from C
- embed Rust code in a Python project
- create C-compatible Rust libraries
- examples of Rust FFI with dynamic libraries
- bind Rust functions to other languages
- understand Rust extern and #[no_mangle] usage

## When to choose
- you need working, minimal examples of Rust FFI with various languages
- you are learning how Rust interoperates with C ABIs
- you want a starting template for a Rust native library consumed by other languages

## When to avoid
- you need maintained, up-to-date FFI guidance for modern Rust toolchains
- you require production-ready binding generators or tooling
- you need support or fixes, since the repository is archived

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: developer-tools
- domain: developer-tools, programming-languages, tutorials
- platform: cross-platform, rust, python, cpp, c
- tags: ffi, rust-ffi, examples, interoperability, language-bindings

## Member repositories
- alexcrichton/rust-ffi-examples (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:07.683852+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:50.732788+00:00, confidence not recorded.
  - readme: https://github.com/alexcrichton/rust-ffi-examples (fetched 2026-08-28T04:04:07.683852+00:00, sha b5eae7c76e3d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
