SWIG VS rust-bindgen

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

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)

rust-bindgen

Automatically generates Rust FFI bindings to C (and some C++) libraries. (by rust-lang)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
SWIG rust-bindgen
25 50
5,493 4,055
1.3% 2.2%
9.7 8.9
4 days ago 17 days ago
C++ Rust
GNU General Public License v3.0 or later BSD 3-clause "New" or "Revised" License
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.

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.

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.

What are some alternatives?

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

cffi

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.

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

cxx - Safe interop between Rust and C++

Cython - The most widely used Python to C compiler

autocxx - Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers

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

vulkano - Safe and rich Rust wrapper around the Vulkan API

djinni

JNA - Java Native Access

CC - A small, usability-oriented generic container library.