Skip to content

Commit

Permalink
Merge branch 'main' into multi-crate
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann authored Apr 4, 2024
2 parents e21a2fd + 06324e0 commit 4fcba12
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fs::{self, create_dir};

use crate::Result;
use camino::Utf8Path;
use uniffi_bindgen::bindings::swift::gen_swift::SwiftBindingGenerator;
use uniffi_bindgen::{bindings::TargetLanguage, BindingGeneratorDefault};

use crate::recreate_dir;

Expand All @@ -19,7 +19,10 @@ pub fn generate_bindings(lib_path: &Utf8Path) -> Result<()> {
let uniffi_outputs = uniffi_bindgen::library_mode::generate_bindings(
lib_path,
None,
&SwiftBindingGenerator {},
&BindingGeneratorDefault {
target_languages: vec![TargetLanguage::Swift],
try_format_code: false,
},
None,
out_dir,
false,
Expand Down

0 comments on commit 4fcba12

Please sign in to comment.