getditto/safer_ffi
Write safer FFI code in Rust without polluting it with unsafe code observed · 2026-08-28
Health v2 · maintenance only
59/100
- Activity 80
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2287
- days_rel: n/a
- days_push: 121
- n_releases_24m: 0
Adoption not part of the score
1052 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
safer_ffi is a Rust framework for writing foreign function interfaces without polluting code with unsafe blocks. It provides attribute macros to export Rust functions and types to C, including automatic C header generation.
Use cases
- expose rust functions to c callers
- generate c headers from rust code
- write ffi bindings without unsafe code
- build a c-compatible static or dynamic library from rust
- call rust code from c or other languages
When to choose
- you maintain a rust library consumed from c, c++, or other ffi-capable languages
- you want safe, readable ffi signatures instead of raw pointers
- you need automatic c header generation
When to avoid
- you need bindings between two non-rust languages
- you need stable, fully mature guarantees - it is still in an alpha/rc stage
- your project is pure rust with no ffi boundary
Facets
library · maturity active
sdk developer-tools parser developer-tools programming-languages cross-platform rust cpp c cross-platform ffi bindings c-interop header-generation no-std unsafe-rust
3 sources
- readme: https://github.com/getditto/safer_ffi · fetched 2026-08-28 · bc5272e6533e
- homepage: http://getditto.github.io/safer_ffi · fetched 2026-08-29 · 2523f68bc31e
- registry_crates: https://crates.io/api/v1/crates/safer_ffi · fetched 2026-08-29 · 813c0a30f952
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| getditto/safer_ffi | main | 59 |
For agents
markdown · JSON · MCP: product_card(name="getditto/safer_ffi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem