Comments (6)
What's the output of swiftc --version
on your machine?
I think it might be outdated and the error here makes me believe that your version of Swift doesn't know async
yet.
async/await was implemented in Swift 5.5.
from uniffi-rs.
The version bundled with the docker file of the repo:
uniffi-rs/docker/Dockerfile-build
Line 43 in eeb785c
from uniffi-rs.
I currently cannot reproduce that in Docker:
$ docker build -t rfkelly/uniffi-ci -f docker/Dockerfile-build .
$ docker run \
-ti --rm \
-v $HOME/.cargo/registry:/usr/local/cargo/registry \
-v $PWD:/mounted_workdir \
-w /mounted_workdir \
rfkelly/uniffi-ci:latest bash
# CARGO_TARGET_DIR=/tmp/target cargo test -p uniffi-example-async-api-client
<snip>
test uniffi_foreign_language_testcase_test_async_api_client_swift ... ok
<snip>
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.64s
This is on eeb785c (current main
as of this comment)
from uniffi-rs.
Hmm, i had some issues building the image with podam, so i tried to use the image from the docker registry. Maybe that image is not up to date?
from uniffi-rs.
We're using it in CI. :)
Are you using janerik/uniffi-ci-test:latest
?
.... and only just now I realize that we do reference the old name (rfkelly/uniffi-ci
) in the docs (and in my command above, d'oh!)
from uniffi-rs.
Sorry for for the very late reply, but when switching to the image you suggested I am able to run the tests without issues.
from uniffi-rs.
Related Issues (20)
- Expose panic line numbers in logcat
- Kotlin bug: enum with associated value being `Arc<Object>` generates non compiling Kotlin code (UniFFI 0.27.1) HOT 1
- Clarify `check_library_path` semantics HOT 2
- DISCUSS: Proc macro / UDL for Swift property wrappers and macro annotations HOT 4
- Issues while importing and using a created swiftmodule HOT 5
- Incorrect comments in RustBuffer about being limited to i32
- how to send Rust opaque type to Kotlin HOT 5
- Online docs have no language syntax highlighting HOT 1
- RustBuffer regression with nested Errors HOT 5
- Swift errors don't provide `localizedDescription` HOT 6
- Generating FFI bindings for dependent crates into one single Swift / Kotlin file? HOT 4
- External type fails for some corner cases HOT 1
- Config feature and Export macros don't get along HOT 1
- iOS Framework Expected in: /usr/lib/libc++.1.dylib HOT 2
- Remote interface types
- Updating from 0.25.3 to 0.26.x or 0.27.x fails for interface HOT 8
- Java 8 deprecation is unexpected
- #[doc = ...] fails to parse with uniffi attribute macros HOT 1
- update docs/diplomat-and-macros.md
- Crates.io shows 0.27.2 but the associated tag doesn't exist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uniffi-rs.