diff --git a/src/bindings.rs b/src/bindings.rs index 174ff07..2d5d6c9 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -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; @@ -19,7 +19,10 @@ pub fn generate_bindings(lib_path: &Utf8Path, crate_name: &str) -> Result<()> { uniffi_bindgen::library_mode::generate_bindings( lib_path, Some(crate_name.to_owned()), - &SwiftBindingGenerator {}, + &BindingGeneratorDefault { + target_languages: vec![TargetLanguage::Swift], + try_format_code: false, + }, None, out_dir, false,