#swift #xcode #ffi #spm #swift-package

uniffi_swiftpkg_gen

Xcode swift package framework generator/updater tool for rust UniFFI

13 releases

0.2.8 Feb 15, 2022
0.2.6 Feb 15, 2022
0.1.18 Feb 14, 2022

#1486 in Development tools

43 downloads per month

MPL-2.0 license

53KB
1K SLoC

uniffi_swiftpkg_gen

Generates swift package based on rust UniFFI.

How to install

Add uniffi_swiftpkg_gen to your rust cargo.

[build-dependencies]
uniffi_swiftpkg_gen = "0.1.2"

Example:

use uniffi_swiftpkg_gen::*;

fn main() {
    // Rust uniffi package gen
    uniffi_build::generate_scaffolding("./src/gix_guard.udl")
        .unwrap();

    // Generates Xcode Swift package
    Builder::new().generate();
}

Dependencies

~2–12MB
~98K SLoC