akashgurava / rust-swift-ffi

Cargo generate template for Rust-Swift FFI for Swift PM with iOS and Mac targets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

{{project-name | pascal_case}}

1. Requirements

  1. MacOS
  2. Xcode with CLI tools - xcodebuild and lipo will be used.
  3. Rust with following targets
    • aarch64-apple-darwin
    • aarch64-apple-ios
    • aarch64-apple-ios-sim
    • x86_64-apple-darwin
    • x86_64-apple-ios
  4. cbindgen

2. Usage

  1. Run ./build-rust.sh - This will generate {{crate_name}}FFI.xcframework file.
  2. This framework file will be used as binary target for # {{project-name | pascal_case}} Swift project and will be importable as {{project-name | pascal_case}}FFI.

About

Cargo generate template for Rust-Swift FFI for Swift PM with iOS and Mac targets.

License:MIT License


Languages

Language:Swift 65.9%Language:Shell 33.2%Language:Rust 0.9%