Rust FFI

Open-source Rust projects categorized as FFI

Top 19 Rust FFI Projects

  • neon

    Rust bindings for writing safe and fast native Node.js modules.

    Latest mention: Napi100 Released Build Fast And Safe Nodejs | | 2020-12-30

    napi project start from 2018.04, and the neon start plan to support N-API in 2019:, since I have lot of libraries already written in napi and using in production.

  • PyO3

    Rust bindings for the Python interpreter

    Latest mention: Why is Python so popular? | | 2021-01-13

    I learned here about the easy interop of Python with C, which means that I'll be able to call Python from Rust, if I need libraries that haven't been ported. There's a well maintained library PyO3 to make it even more convenient.

  • rustler

    Safe Rust bridge for creating Erlang NIF functions

    Latest mention: New book! Refactoring to Rust | | 2021-01-07

    Any mention of Elixir?

  • rust-cpython

    Rust <-> Python bindings

  • winapi-rs

    Rust bindings to Windows API

  • cbindgen

    A project for generating C bindings from Rust code

    Latest mention: Hey Rustaceans Got An Easy Question Ask Here | | 2020-12-28

    cbindgen can't support most arbitrary structs; they need to be marked #[repr(C)] which includes their fields:

  • jni-rs

    Rust bindings to the Java Native Interface — JNI

  • rust-objc

    Objective-C Runtime bindings and wrapper for Rust.

  • curryrs

    Bridge the gap between Haskell and Rust

  • j4rs

    Java for Rust

  • mrusty

    mruby safe bindings for Rust

  • rusty-cheddar

    A Rust crate for automatically generating C header files from Rust source file.

  • rust-lua

    Safe Rust bindings to Lua 5.1

  • rustpy

    Rust + Python = ????

  • rjni

    Run Java code from Rust!

  • rust-jni-sys

  • uapi

    Unix API

    Latest mention: uapi: A pragmatic libc wrapper | | 2021-01-07
  • rust-jdbc

    Rust-JDBC bindings

  • rust-bindgen


NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).


What are some of the best open-source FFI projects in Rust? This list will help you:

Project Stars
1 neon 5,100
2 PyO3 3,343
3 rustler 2,581
4 rust-cpython 1,368
5 winapi-rs 1,173
6 cbindgen 887
7 jni-rs 417
8 rust-objc 248
9 curryrs 242
10 j4rs 197
11 mrusty 193
12 rusty-cheddar 190
13 rust-lua 112
14 rustpy 73
15 rjni 59
16 rust-jni-sys 30
17 uapi 19
18 rust-jdbc 13
19 rust-bindgen 1