#ios #cargo #swift #apple #cocoapods

app cargo-cocoapods

Generate a Cocoapods wrapper for your Rust project

2 unstable releases

Uses new Rust 2021

0.3.0 May 4, 2022
0.2.0 Oct 24, 2021

#300 in Cargo plugins

Apache-2.0 OR MIT

774 lines

cargo-cocoapods - Build Rust code for Xcode integration


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 \

Modify as necessary for your use case.


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


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.


~137K SLoC