-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returning Result<struct, struct> #168
Comments
I think that this will be mostly solved by #159 , since it will let us dynamically generate the FFI glue that we need for any supported In short, this doesn't work yet, but should be easy to support after #159 lands. So feel free to subscribe to that issue. I'll leave this issue open until we can confirm that it is resolved. |
Nice, thanks for the update! Wasn't sure that would fix it. :) |
We have added support returning So, I guess that we could easily implement returning |
I'll address this issue this week or next week. |
I guess this issue should be blocked on #196. |
I don't think it needs to be blocked. |
Ok. By the way, I said that I'd like to work on this issue, but I'll leave it to a new contributor or someone else. |
Right now, I personally need this feature, so I have decided to implement it. |
Nice! Sounds great. That will let us finally handle this swift-bridge/examples/async-functions/src/lib.rs Lines 15 to 32 in 1f9dd05
|
I found that returning But, I think that we need to add any tests for returning I guess that the following test codes might be helpful as references. Codegen Test: swift-bridge/crates/swift-bridge-ir/src/codegen/codegen_tests/result_codegen_tests.rs Lines 465 to 540 in 1f9dd05
Integration Test: swift-bridge/SwiftRustIntegrationTestRunner/SwiftRustIntegrationTestRunnerTests/ResultTests.swift Lines 99 to 129 in 1f9dd05
And then we need to update swift-bridge/examples/async-functions/src/lib.rs Lines 15 to 16 in 1f9dd05
|
This seems to be supported, but I'm getting this error:
Source:
Am I missing something?
The text was updated successfully, but these errors were encountered: