swash
uniffi-rs
swash | uniffi-rs | |
---|---|---|
10 | 26 | |
561 | 2,301 | |
- | 2.8% | |
6.5 | 9.5 | |
about 1 month ago | 2 days ago | |
Rust | Rust | |
MIT or Apache 2.0 | Mozilla Public License 2.0 |
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.
swash
-
Looking for this. html + css rendering through wgpu.
If you were to implement this yourself, i'd look into either swash or cosmic-text for the text rendering stack (this is one of the things you really don't want to write from the ground up). For accessibility, AccessKit has quickly become the standard for communicating with crossplatform accessibility APIs in rust GUI. lightningcss (or its lower level counterpart cssparser) are both decent options for CSS parsing. Taffy handles some of what browsers offer for a layout engine, but is still being worked on.
- Any suggestion for gpu text rendering?
- Cosmic Text: Pure Rust multi-line text handling
-
Font rendering and layout crates
You probably want to take a look at swash.
-
Bachelor idea to help the rust community
https://github.com/dfrg/swash which does text-shaping and could be built upon
-
I'm giving out microgrants to open source projects for the third year in a row! Brag about your projects here so I can see them, big or small!
swash - A shaping engine that advertises performance comparable to HarfBuzz, and surpassing it in some cases. Tests are in-progress.
-
Whats your favourite open source Rust project that needs more recognition?
swash: a pure Rust shaping engine like Harfbuzz with competitive performance.
- Font introspection, complex text shaping and glyph rendering in Rust
- Text Rendering w/ HarfBuzz, FreeType and OpenGL
- swash: Complex text shaping and glyph rasterization in pure Rust
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
What are some alternatives?
rusttype - Mirror of https://gitlab.redox-os.org/redox-os/rusttype
flutter_rust_bridge - Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
fontdue - The fastest font renderer in the world, written in pure rust.
rust-android-gradle
rustybuzz - A complete harfbuzz's shaping algorithm port to Rust
PyO3 - Rust bindings for the Python interpreter
kiss3d - Keep it simple, stupid 3d graphics engine for Rust.
cxx - Safe interop between Rust and C++
ab-glyph - Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
wasmer-go - 🐹🕸️ WebAssembly runtime for Go
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
glommio - Glommio is a thread-per-core crate that makes writing highly parallel asynchronous applications in a thread-per-core architecture easier for rustaceans.