chinedufn/swift-bridge
swift-bridge facilitates Rust and Swift interop. observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 61
- Release rhythm 65
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 30
- age_days: 1753
- days_rel: 239
- days_push: 239
- n_releases_24m: 2
Adoption not part of the score
1123 stars · 77 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rust crate plus build-time code generator that produces FFI bindings so Rust and Swift can call each other's code safely. It bridges high-level types such as String, Option, Result, structs and classes, and supports async functions and generics without hand-written C glue.
Use cases
- call Rust code from a Swift iOS app
- call Swift APIs from Rust
- generate FFI bindings between Rust and Swift
- share high-level types like String and Result across a Rust-Swift boundary
- embed a Rust core library into an iOS or macOS app
- replace hand-written C FFI glue with generated bindings
When to choose
- You are building an iOS or macOS app with a Rust core and want safe, ergonomic bindings
- You need to pass rich types (Option, Result, structs, classes, async) across the Rust-Swift boundary
- You want build-time code generation via swift-bridge-build or the CLI instead of maintaining FFI manually
When to avoid
- You need Rust interop with languages other than Swift, such as Kotlin or Java
- You require a 1.0-stable API or complete documentation, since the crate is still 0.1.x with a work-in-progress book
- You only need a thin, simple C-level FFI layer that you can maintain by hand
Facets
library · maturity active
sdk build-tool developer-tools developer-tools mobile-development cross-platform programming-languages cross-platform rust ffi bindings interop code-generation swift ios-apps ios macos
3 sources
- readme: https://github.com/chinedufn/swift-bridge · fetched 2026-08-28 · 8ac9f70a5b9b
- homepage: https://chinedufn.github.io/swift-bridge · fetched 2026-08-29 · 04d5b2265198
- registry_crates: https://crates.io/api/v1/crates/swift-bridge · fetched 2026-08-29 · e24341f4a93b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chinedufn/swift-bridge | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="chinedufn/swift-bridge")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem