#ios #cargo #swift #apple #cocoapods

app cargo-cocoapods

Generate a Cocoapods wrapper for your Rust project

2 unstable releases

0.3.0 May 4, 2022
0.2.0 Oct 24, 2021

#502 in Cargo plugins

43 downloads per month

Apache-2.0 OR MIT

31KB
774 lines

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

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.

Dependencies

~9–21MB
~292K SLoC