Function uniffi_bindgen::bindings::swift::write_bindings
source · pub fn write_bindings(
config: &Config,
ci: &ComponentInterface,
out_dir: &Utf8Path,
try_format_code: bool
) -> Result<()>
Expand description
Write UniFFI component bindings for Swift as files on disk.
Unlike other target languages, binding to Rust code from Swift involves more than just
generating a .swift
file. We also need to produce a .h
file with the C-level API
declarations, and a .modulemap
file to tell Swift how to use it.