Function uniffi::testing::ensure_compiled_cdylib[][src]

pub fn ensure_compiled_cdylib(pkg_dir: &str) -> Result<String>

Ensure that a uniffi component crate is compiled and ready for use.

This function takes the top-level directory of a uniffi component crate, ensures that the component's cdylib is compiled and available for use in generating bindings and running foreign language code.

Internally, this function does a bit of caching and concurrency management to avoid rebuilding the component for multiple testcases.