rust-bindgen VS SWIG

Compare rust-bindgen vs SWIG and see what are their differences.

rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries. (by rust-lang)

SWIG

SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. (by swig)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
rust-bindgen SWIG
50 25
4,024 5,463
2.9% 1.2%
8.9 9.8
8 days ago 1 day ago
Rust C++
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rust-bindgen

Posts with mentions or reviews of rust-bindgen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-20.

SWIG

Posts with mentions or reviews of SWIG. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-18.

What are some alternatives?

When comparing rust-bindgen and SWIG you can also consider the following projects:

cffi

CppSharp - Tools and libraries to glue C/C++ APIs to high-level languages

Cython - The most widely used Python to C compiler

Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.

djinni

JavaCPP - The missing bridge between Java and native C++

cxx - Safe interop between Rust and C++

JNA - Java Native Access

libffi - A portable foreign-function interface library.

PyCUDA - CUDA integration for Python, plus shiny features

Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint

sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation: