https://github.com/terhechte/uniffi-swift-async-example
Quick example showing how to use uniffi with swift and async
https://github.com/terhechte/uniffi-swift-async-example
Last synced: 3 months ago
JSON representation
Quick example showing how to use uniffi with swift and async
- Host: GitHub
- URL: https://github.com/terhechte/uniffi-swift-async-example
- Owner: terhechte
- Created: 2023-09-20T10:46:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-23T14:14:21.000Z (over 1 year ago)
- Last Synced: 2025-01-27T22:44:42.000Z (4 months ago)
- Language: Swift
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Uniffi Async Example
Showcase uniffi using async and no `udl` file.
Requires [cargo xcframework](https://crates.io/crates/xcframework).
1. Install [cargo xcframework](https://crates.io/crates/xcframework)
2. run `./make.sh`
3. Open `Andaluh` folder in xcode and run## Notes
- This doesn't work with `cargo swift` yet, hence we need the xcframework and the generated `include/swiftandaluh.swift` file in our Xcode project
- Because it doesn't use `cargo swift` we're also not generating a Swift `Package`. I think this would be possible, but it would require more time
- In general the better way would be to use the `bazel` build system as this would also support debugging etc. This is something I want to look into (supporting uniffi, bazel & async in one go).