serde-reflection
Rust libraries and tools to help with interoperability and testing of serialization formats based on Serde. (by zefchain)
diplomat
Experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code (by rust-diplomat)
serde-reflection | diplomat | |
---|---|---|
1 | 6 | |
106 | 452 | |
2.8% | 3.1% | |
3.8 | 8.8 | |
7 months ago | 5 days ago | |
Rust | Rust | |
Apache License 2.0 | 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.
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.
serde-reflection
Posts with mentions or reviews of serde-reflection.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-22.
diplomat
Posts with mentions or reviews of diplomat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-20.
-
ffizz: Build a Beautiful C API in Rust
The tooling for the first kind -- calling Rust from another language -- is a bit less developed, and tends to rely on code generation that doesn't necessarily produce a natural C API. cbindgen, uniffi, cxx, and Diplomat all take this course.
-
ICU4X 1.2: Now With Text Segmentation and More on Low-Resource Devices
I don't think that accurately describes what ICU4X does. It generates code directly in the language needed using Diplomat. Which currently supports JS/TS/Wasm, C, C++, and .NET, but we plan to support more (Dart is actively being worked on, there is a lot of interest in Java). Diplomat is designed to be relatively easy to write backends for: you have to write code that converts its internal IR to bindings code, so you mostly need to understand that internal IR and figure out how to idiomatically map it to other languages.
- 1Password releases Typeshare, the "ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI"
-
Multi-language library support: Is it possible?
The ICU4X team is developing diplomat - https://github.com/rust-diplomat/diplomat/
-
Anyone interested in open-sourcing high-level memory-safe bindgen for Dart/Flutter <–> Rust?
I'm not that interested in a separate tool for this but it would be really cool to have a dart plugin as a part of Diplomat. Diplomat's not fully polished yet but it's totally okay to add new language backends to it. (Eventually I plan to restructure it so that it has a cleaner plugin interface, but for now "checked into tree" is fine for backends)
What are some alternatives?
When comparing serde-reflection and diplomat you can also consider the following projects:
moat - mobile type (currently Swift, Kotlin) generation from Haskell types
uniffi-rs - a multi-language bindings generator for rust
fbthrift - Facebook's branch of Apache Thrift, including a new C++ server.
flutter_rust_bridge - Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
bifrost
cbindgen - A project for generating C bindings from Rust code
wgpu - Cross-platform, safe, pure-rust graphics api.
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
crates.io - The Rust package registry
airbax - Exception tracking from Elixir to Airbrake
serde-reflection vs moat
diplomat vs uniffi-rs
serde-reflection vs fbthrift
diplomat vs flutter_rust_bridge
serde-reflection vs bifrost
diplomat vs cbindgen
serde-reflection vs uniffi-rs
diplomat vs wgpu
serde-reflection vs wasm-bindgen
diplomat vs moat
serde-reflection vs crates.io
diplomat vs airbax