Rust Bindings

Open-source Rust projects categorized as Bindings

Top 23 Rust Binding Projects

  1. rust-bindgen

    Automatically generates Rust FFI bindings to C (and some C++) libraries.

    Project mention: Ask HN: What less-popular systems programming language are you using? | news.ycombinator.com | 2025-03-01

    You only hand-write function bindings in simple or well-constrained cases.

    In general, the expectation is that you will use bindgen [0].

    It's a very easy process:

    1. Create a `build.rs` file in your Rust project, which defines pre-build actions. Use it to call bindgen on whatever headers you want to import, and optionally to define library linkage. This file is very simple and mainly boilerplate. [1]

    2. Import your bindgen-generated header as a module and... just use it. [2]

    You can also skip step 1: bindgen is also a CLI tool, so if your C target is stable, you can just run bindgen once to generate the Rust interface module and move that right into your crate.

    [0]: https://rust-lang.github.io/rust-bindgen/

    [1]: https://rust-lang.github.io/rust-bindgen/tutorial-3.html

    [2]: https://github.com/Charles-Schleich/Rust-Bindgen-Example/blo...

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. rusqlite

    Ergonomic bindings to SQLite for Rust

    Project mention: Show HN: SQLite Transaction Benchmarking Tool | news.ycombinator.com | 2024-07-17
  4. fltk-rs

    Rust bindings for the FLTK GUI library.

  5. ts-rs

    Generate TypeScript bindings from Rust types

  6. gstreamer-rs

    GStreamer bindings for Rust - This repository moved to https://gitlab.freedesktop.org/gstreamer/gstreamer-rs

  7. nostr

    Rust implementation of the nostr protocol, high-level client library, Nostr Wallet Connect and more. (by rust-nostr)

  8. udbserver

    Unicorn Emulator Debug Server - Written in Rust, with bindings for C, Go, Java and Python

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. nuklear-rust

    The bindings to the Nuklear 2D immediate GUI library.

  11. rust-sdks

    LiveKit realtime and server SDKs for Rust

  12. SQLite

    Interface to SQLite (by stainless-steel)

  13. gir

    Tool to generate rust bindings and user API for glib-based libraries (by gtk-rs)

  14. x11-rs

    Rust bindings for X11 libraries

  15. rust-GSL

    A GSL (the GNU Scientific Library) binding for Rust

  16. fruity

    Rusty bindings for Apple libraries

  17. rust-xcb

    Rust bindings and wrapper for XCB.

  18. ctru-rs

    Rust wrapper for libctru

  19. rust-iptables

    Rust bindings for iptables

  20. janetrs

    Rust high level bindings for Janet

  21. poppler-rs

    Render PDFs in Rust using libpoppler

  22. wikijs-rs

    API bindings, CLI client and FUSE filesystem for Wiki.js written in Rust.

  23. starlark-pyo3

    A Python wrapper for starlark-rust

    Project mention: Starlark Programming Language | news.ycombinator.com | 2024-12-09
  24. listenbrainz-rs

    ListenBrainz API bindings for Rust

  25. nvdialog-rs

    Rust bindings to NvDialog, a C library to create modal dialogs and notifications using the system's API.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Rust Bindings discussion

Log in or Post with

Rust Bindings related posts

Index

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

# Project Stars
1 rust-bindgen 4,781
2 rusqlite 3,614
3 fltk-rs 1,723
4 ts-rs 1,373
5 gstreamer-rs 545
6 nostr 492
7 udbserver 368
8 nuklear-rust 366
9 rust-sdks 282
10 SQLite 258
11 gir 250
12 x11-rs 207
13 rust-GSL 198
14 fruity 174
15 rust-xcb 167
16 ctru-rs 139
17 rust-iptables 89
18 janetrs 75
19 poppler-rs 34
20 wikijs-rs 22
21 starlark-pyo3 22
22 listenbrainz-rs 16
23 nvdialog-rs 6

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Rust is
the 5th most popular programming language
based on number of references?