cffi
Safe* C foreign function interface for Rust, using proc macros and marshaling types. (by cffi-rs)
interoptopus
The polyglot bindings generator for your library (C#, C, Python, …) 🐙 (by ralfbiedert)
cffi | interoptopus | |
---|---|---|
1 | 6 | |
15 | 285 | |
- | - | |
2.9 | 7.4 | |
2 months ago | 23 days ago | |
Rust | Rust | |
Apache License 2.0 | - |
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.
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.
cffi
Posts with mentions or reviews of cffi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-07-20.
-
Application design: communication from Rust to another language
I use a (poorly documented) crate called cffi to make converting the types between Rust and C (and therefore Swift) as coherent as possible.
interoptopus
Posts with mentions or reviews of interoptopus.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-21.
-
Python Developer Seeking Input: Is it Worth Learning Rust for FFI?
You may want to look at Interpotopus.
-
Calling native Rust code from PowerShell
I also found interoptopus which looks like it can auto-generate the C# bindings, but idk how well it actually works.
-
Interop your .NET application with Rust
Let's first work on the Rust code, what we want to do is to generate a .cs file with all the equivalent bindings and types, doing that by hand is boring and time consuming, luckly there is a library for easily do all the heavy stuff for us called interoptopus.
-
Are there any .NET interop crates? I would like to use C# as GUI frontend for editor in my game
I see you've already been introduced to rnet. Another option would be interoptopus.
-
How can I utilize rust for .net web applications?
interoptopus (The polyglot bindings generator for your library.)
-
CGlue 0.2 is out! Dynamically loadable traits in Rust, C and C++
I recently found a project that does C# and Python bindings very well, it might be worth checking out for collaboration/inspiration. https://github.com/ralfbiedert/interoptopus
What are some alternatives?
When comparing cffi and interoptopus you can also consider the following projects:
PyO3 - Rust bindings for the Python interpreter
grpc-swift - The Swift language implementation of gRPC.
svix-webhooks - The enterprise-ready webhooks service 🦀
divvunspell-sdk-swift - A Swift wrapper around DivvunSpell
abi_stable_crates - Rust-to-Rust ffi,ffi-safe equivalents of std types,and creating libraries loaded at startup.
cargo-cocoapods - Bundle Cargo crates for use with macOS/iOS in Xcode
cglue - Rust ABI safe code generator
tonic - A native gRPC client & server implementation with async/await support.
rnet
livesplit-core - livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.
RustSharp - Playground for calling Rust from C#