cargo-cocoapods icon indicating copy to clipboard operation
cargo-cocoapods copied to clipboard

Bundle Cargo crates for use with macOS/iOS in Xcode

cargo-cocoapods - Build Rust code for Xcode integration

Installing

cargo install cargo-cocoapods

You'll also need to install all the toolchains you intend to use. Simplest way is with the following:

rustup target add \
    x86_64-apple-darwin \
    aarch64-apple-darwin \
    x86_64-apple-ios \
    aarch64-apple-ios \
    aarch64-apple-ios-sim

Modify as necessary for your use case.

Usage

Type cargo pod --help for information.

Supported hosts

  • macOS (x86_64 and arm64)

Similar projects

  • cargo-ndk - for building Android libraries
  • cargo-lipo - for building iOS universal Rust libraries

License

This project is licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.


Uyghurs are under attack in Xinjiang. The Chinese government is placing millions of people into indoctrination camps and engaging in forced labour.