divvunspell-sdk-swift
A Swift wrapper around DivvunSpell (by divvun)
swift-bridge
swift-bridge facilitates Rust and Swift interop. (by chinedufn)
divvunspell-sdk-swift | swift-bridge | |
---|---|---|
1 | 16 | |
5 | 723 | |
- | - | |
2.9 | 7.0 | |
10 months ago | 9 days ago | |
Rust | Rust | |
MIT License | 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.
divvunspell-sdk-swift
Posts with mentions or reviews of divvunspell-sdk-swift.
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
From what you're describing it sounds like you just want to have a Rust library that is used by Swift. If this is the approach you take, then you would need to have C headers and write nice little Swift wrappers around that to make your life not hell. Here is a real life advanced example of how I've done that before.
swift-bridge
Posts with mentions or reviews of swift-bridge.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-13.
-
macOS Apps in Rust
A bit late, but `swift-bridge` (https://github.com/chinedufn/swift-bridge) does this intelligently, and is probably what you're looking for.
- swift-bridge 0.1.37 supports passing `Box<dyn FnOnce(A, B) -> C>` from Rust to Swift
-
Rust playground on iOS
4) Another route that I tried is to develop a simple terminal app using SwiftUI with a Xcode project to build that app + link against a Rust library compiled for iOS with the actual logic. I used swift-bridge for this and it works really well, to the point where I have a custom logger that you can simply use the print stuff to SwiftUI from Rust using the log crate. Once I have a bit more time, I will probably try figuring out how to clean this up a bit more.
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Since Swift is your first target, I might recommend swift-bridge which can generate bindings for Rust async fns that Swift can call directly.
-
What's everyone working on this week (18/2022)?
I'm working on getting my GUI crate (https://github.com/audulus/rui) working on iOS (https://github.com/audulus/rui-ios). Multitouch will be fun. Shout out to the excellent work in swift-bridge: https://github.com/chinedufn/swift-bridge.
-
swift-bridge: type-safe interop between Swift and Rust
So that class SwiftString was actually unused. I've removed it here https://github.com/chinedufn/swift-bridge/pull/33 .
-
swift-bridge now supports calling async Rust functions from Swift
Here's an example of a Rust library that exposes an async function that uses reqwest to make an API call, and a main.swift that calls that async function.
-
Any good tutorials/examples on using a Rust library in Swift code for multiple targets?
Have you tried Swift Bridge? https://github.com/chinedufn/swift-bridge
- Swift-bridge: Call Rust from Swift and vice versa
What are some alternatives?
When comparing divvunspell-sdk-swift and swift-bridge you can also consider the following projects:
xcnotary - the missing macOS app notarization helper, built with Rust
swift - The Swift Programming Language
cffi - Safe* C foreign function interface for Rust, using proc macros and marshaling types.
cxx - Safe interop between Rust and C++
grpc-swift - The Swift language implementation of gRPC.
repo
rust - Empowering everyone to build reliable and efficient software.
config-rs - ⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
rui - Declarative Rust UI library
log - Logging implementation for Rust
too-many-lists - Learn Rust by writing Entirely Too Many linked lists
Cargo - The Rust package manager
divvunspell-sdk-swift vs xcnotary
swift-bridge vs swift
divvunspell-sdk-swift vs cffi
swift-bridge vs cxx
divvunspell-sdk-swift vs grpc-swift
swift-bridge vs repo
swift-bridge vs rust
swift-bridge vs config-rs
swift-bridge vs rui
swift-bridge vs log
swift-bridge vs too-many-lists
swift-bridge vs Cargo