Skip to content

Commit

Permalink
Add support for uniffi library mode
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 2, 2023
1 parent bb51c6b commit 45e11f3
Show file tree
Hide file tree
Showing 10 changed files with 813 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/module_writer.rs
Expand Up @@ -918,13 +918,6 @@ fn generate_uniffi_bindings(
false
};

// Disallow library mode without UDL files for now
// Should be removed in https://github.com/PyO3/maturin/pull/1729
// once uniffi release a new version
if is_library {
bail!("No UDL files found in {}", crate_dir.join("src").display());
}

let mut cmd = uniffi_bindgen_command(crate_dir)?;
cmd.current_dir(crate_dir);
cmd.args([
Expand Down

0 comments on commit 45e11f3

Please sign in to comment.