-
Notifications
You must be signed in to change notification settings - Fork 224
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
Building fails if we only have one use statement #1699
Comments
Please specify the code that works and the one that fails, otherwise we have to randomly guess what use statement fixes your build. |
Oh right, sorry about that. It is really weird, it randomly started working again but with one or more use statement only, specifically I am using the comrak crate. The below code fails with the same error I already showed, but everything is fine after importing comrak even though it isn't using it. Importing something else like rand still shows the error. I was running
Below builds fine.
I also copied the project, removed all dependencies including uniffi, |
If you can remove UniFFI and it still fails as above then yes, something else is broken. Though I still ask: Which version of UniFFI are you using? |
I'm using the latest commit, I tried using a version from before I got the issue and it didn't solve it |
Looks like this might be an issue with rust: rust-lang/rust#113711 |
Thanks for finding that, I probably should have searched there too instead of only google and the uniffi issue tracker. The workaround in android/ndk#1856 (comment) works and builds without errors. |
Thanks for reporting back. Closing this issue then. |
Hi, when my project only uses one use statement, building seems to fail. Adding another use statement fixes it even if we don't use that crate.
The text was updated successfully, but these errors were encountered: