uniffi-rs
qt
uniffi-rs | qt | |
---|---|---|
26 | 12 | |
2,301 | 10,227 | |
2.8% | - | |
9.5 | 0.0 | |
5 days ago | 2 months ago | |
Rust | Go | |
Mozilla Public License 2.0 | GNU Lesser General Public License v3.0 only |
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.
uniffi-rs
-
Opaque Types for UniFFI
On my youtube series "Growing up Rust", I'm building a personal CRM in Rust with a Swift frontend. I'm using CQRS and an event-driven architecture with the least amount of swift as possible. I'm using UniFFI to generate the bindings for swift (and in this example python)
-
Willow Protocol
Not officially. We currently have bindings for rust, python, golang and swift.
These were the most asked for bindings (python for ml, golang for networking and swift for ios apps).
We are using uniffi https://mozilla.github.io/uniffi-rs/
Would you need C or C++ bindings?
- UniFFI: Automatically generate foreign-language bindings for Rust libraries
- Compiling Rust for .NET, using only tea and stubbornness
-
Show HN: Pip Imports in Deno
An alternative is metacall. The example in the readme is about calling Python from Javascript, but it also works with other languages, like Ruby, C#, Java, and other languages
https://github.com/metacall/core
List of supported languages here https://github.com/metacall/core/blob/develop/docs/README.md...
In the future, maybe webidl (or extensions of it) will bring interoperability between languages too. At the moment there is https://mozilla.github.io/uniffi-rs/ for interoperability between Rust and a number of languages (basically the ones mozilla needs: Swift, Kotlin, Javascript)
-
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.
-
macOS Apps in Rust
Mozilla's uniffi-rs is really good. You write a common IDL and the bindings are generated automatically.
https://github.com/mozilla/uniffi-rs
-
Write SDK “base” in Rust, wrap in other languages?
At Mozilla we built a multi-language bindings generator: https://github.com/mozilla/uniffi-rs/
-
An experiment in the Rust compiler to begin devising a new cross-language ABI that's higher-level than the C ABI, with the goal of safer and easier FFI
Is there a connection with Mozilla UniFFI ?
-
Tauri now supports Android/iOS in the 2.0 branch!
Rust <> Swift/ Kotlin works very well with uniffi-rs by Mozilla: https://github.com/mozilla/uniffi-rs
qt
-
GoLang — Simplifying Complexity “The Beginning”
. Web backend (with various frameworks available) . Web Assembly (one of them is vugu framework) . Microservices (some frameworks: Go Micro, Go Kit, Gizmo, Kite) . Fragments services (Term mentioned by @jeffotoni in a microservices discussion group) . Lambdas (FaaS example) . Client Server . Terminal applications (using the tview lib) . IoT (some frameworks) . Bots (some here) . Client Applications using Web technology . Desktop using Qt+QML, Native Win Lib (example Qt, Qt widgets, Qml) . Network Applications . Protocol applications . REST Applications . SOAP Applications . GraphQL Applications . RPC Applications . TCP Applications . gRPC Applications . WebSocket Applications . GopherJS (compiles Go to JavaScript)
- bindings to GTK or QT
-
macOS Apps in Rust
> https://github.com/therecipe/qt
Do these not work? (I haven’t tried them - non-rhetorical question.)
-
My first idea that I want to write in Go
Could try looking at wails. I don’t really ever do any GUI programming, especially in Go. But it and Fyne are probably gonna be your best, easiest route. Though, I do know there are also bindings for Qt
-
Qt Bindings for go not found
Well, of course it does exist, you cannot use github URL like that, this one works https://github.com/therecipe/qt/tree/master/widgets.
- golang GUI packages
-
Want to create a non-bloated linux app
I know of https://github.com/therecipe/qt, but I've no experience using it, so not sure how well it works. But normally if you feel handy with Go, I guess it should be easier than switching your development stack to C++.
-
How do I get started with the Go Qt binding?
there is also 3rd party examples list on their github pages https://github.com/therecipe/qt/wiki/Getting-Started#3rd-party-examplesdemosapplications
- fyne Vs gio
- Desktop applications discussion
What are some alternatives?
flutter_rust_bridge - Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
fyne - Cross platform GUI toolkit in Go inspired by Material Design
rust-android-gradle
imgui-go - Go wrapper library for "Dear ImGui" (https://github.com/ocornut/imgui)
PyO3 - Rust bindings for the Python interpreter
sciter - Sciter: the Embeddable HTML/CSS/JS engine for modern UI development
cxx - Safe interop between Rust and C++
go-gtk - Go binding for GTK
wasmer-go - 🐹🕸️ WebAssembly runtime for Go
nuklear - This project provides Go bindings for nuklear.h — a small ANSI C GUI library.
glommio - Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.
NanoGUI