mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-20 08:25:13 +00:00
Page:
Doc building for ios
Pages
Anticipated breaking changes during 1.0 alpha
Community User Groups, Meetups, and Events
Community libraries
Doc continuous integration
Doc how to install an unofficial nightly for Windows
Doc Emacs Support
Doc FAQ Cheatsheet
Doc building for android
Doc building for ios
Doc detailed release notes
Doc examples
Doc friends of the tree
Doc language faq
Doc lowlevel details
Doc packages, editors, and other tools
Doc releases
Doc under construction FAQ
Doc vim support
Docs project structure
Docs
Games written in Rust
Home
Howto submit a rust bug report
IRC notifications channel
Lib datetime
Lib fmt
Lib html
Lib io
Lib rand
Lib re
Library editing
Libs
Meeting API review 2014 06 23
Meeting RFC triage 2014 06 19
Mixed language link time optimization
Note Building Rust Before 0.8 on Windows Systems
Note 0.5 priorities
Note Intrinsics
Note Rust performance fixes
Note bors usage
Note buildbots
Note code review
Note compiler snapshots
Note core team
Note development policy
Note getting started developing Rust
Note git workflow
Note guide for new contributors
Note operator overloading
Note priority issue criteria
Note research
Note rustc hacking guide back end
Note rustc hacking guide front end
Note rustc hacking guide middle end
Note rustc hacking guide
Note seeing LLVM output from rust
Note style guide
Note tag label names and definitions
Note testsuite
Note wiki conventions
Notes
OS Bridge 2013 tutorial
Operating system development
Projects using Rust
Rustpkg schedule
Sigil reference
Teaching Rust
The Rusticon
Using Rust on Windows
lib template
No results
103
Doc building for ios
Valerii Hiora edited this page 2015-01-10 08:04:29 +02:00
Table of Contents
Rust on iOS
You need XCode 5.
Build Rust cross-compiler:
mkdir build_ios; cd build_ios
../configure --target=armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,aarch64-apple-ios,x86_64-apple-ios
make
Once compilation complete you can use it.
To target device (depending on dest architecture):
rustc --target=armv7-apple-ios foo.rs
rustc --target=armv7s-apple-ios foo.rs
rustc --target=aarch64-apple-ios foo.rs
To target simulator:
rustc --target=i386-apple-ios foo.rs
rustc --target=x86_64-apple-ios foo.rs
What you get
- all Rust superpowers
- exception handling
- LLDB debugging
Known limitations
- segmented stack is disabled that means no stack protection available
Resources
- Sample of using Rust from Objective C + Makefile for simultaneous compiling for both device and simulator (all architectures)
All Categories:
- Docs -- For users
- Notes -- For developers
- Libs -- For library authors
- Meeting minutes