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

uniffi_swiftpkg_gen

Xcode swift package framework generator/updater tool for rust UniFFI

13 releases

Uses new Rust 2021

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

#93 in Build Utils

Download history 3/week @ 2022-03-05 27/week @ 2022-03-12 54/week @ 2022-03-19 1/week @ 2022-03-26 1/week @ 2022-04-02 13/week @ 2022-04-09 2/week @ 2022-04-16 26/week @ 2022-04-23 91/week @ 2022-04-30 92/week @ 2022-05-07 221/week @ 2022-05-14 41/week @ 2022-05-21 91/week @ 2022-05-28 91/week @ 2022-06-04 1/week @ 2022-06-11 5/week @ 2022-06-18

188 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

~1.8–2.7MB
~55K SLoC