Pebble Coding

ソフトウェアエンジニアによるIT技術、数学の備忘録

rust をios用にビルドする

ios の target を追加してからビルドします。

$ rustup target add x86_64-apple-ios
$ cargo build --target x86_64-apple-ios

cargo.toml

[lib]
name = "blake2rustios"
crate-type = ["staticlib"]

これでstatic libraryが生成されるようです。
他、細かい手順について書かれています。

Building an iOS App in Rust, Part 1: Getting Started with Rust