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 Oct 30, 2023
1 parent fa76bc6 commit 39b4e59
Show file tree
Hide file tree
Showing 14 changed files with 1,846 additions and 55 deletions.
7 changes: 0 additions & 7 deletions src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -921,13 +921,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
Loading

0 comments on commit 39b4e59

Please sign in to comment.