uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

External type tests depend on building other packages

Open bendk opened this issue 3 years ago • 1 comments

The Pythonext-types tests only pass if you build the crates for the external types before running the tests. Kotlin works, but only because it lazily loads the library. If we ever needed to call a function from the UDL I think it would fail too. The issue is that we are building the .so files in the target/debug/deps directory in this case, but we're expecting them target/debug/ directory.

┆Issue is synchronized with this Jira Task ┆Issue Number: UNIFFI-139

bendk avatar Mar 02 '22 17:03 bendk

I think this can be fixed by using the uniffi_testing library, but that's currently only used by uniffi-bindgen-gecko-js.

bendk avatar Apr 12 '22 13:04 bendk