Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpsim/rust-ios-bazel-demo
A demo iOS app building with Bazel, Rust and Swift
https://github.com/jpsim/rust-ios-bazel-demo
Last synced: 3 days ago
JSON representation
A demo iOS app building with Bazel, Rust and Swift
- Host: GitHub
- URL: https://github.com/jpsim/rust-ios-bazel-demo
- Owner: jpsim
- Created: 2023-09-15T09:45:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-15T09:47:26.000Z (over 1 year ago)
- Last Synced: 2025-01-04T04:02:45.151Z (5 days ago)
- Language: C++
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust iOS Bazel Demo
https://github.com/jpsim/rust-ios-bazel-demo/assets/474794/4e6957b9-d38f-4f5c-891d-cb79c60cdc73
Requires having Xcode installed.
First generate and open the Xcode project:
```console
bazel run xcodeproj && xed .
```Then build and run the ios_app target on a simulator.
This will build and run the mixed Rust / Swift iOS app source code.
To update the cargo dependencies, you can run
`CARGO_BAZEL_REPIN=true bazel build rust_lib`.## Credits
I took inspiration from and used the following projects to set up this demo:
* https://github.com/bazelbuild/rules_rust
* https://github.com/bazelbuild/rules_swift
* https://github.com/keith/bazel-rust-mobile-demo
* https://github.com/MobileNativeFoundation/rules_xcodeproj