Skip to content

Commit ce92136

Browse files
committed
iOS: Hello from Rust!
1 parent 61a8326 commit ce92136

File tree

23 files changed

+1162
-13
lines changed

23 files changed

+1162
-13
lines changed

Cargo.lock

Lines changed: 187 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
axum:
22
cd clients/axum && cargo watch -x run
3+
4+
ios:
5+
PROJECT_DIR="${PWD}/clients/ios/TodoList" ./clients/ios/TodoList/build-rust.sh
36

47
yew:
58
cd clients/yew && trunk serve

clients/ios/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "ios"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
build = "build.rs"
7+
8+
[build-dependencies]
9+
swift-bridge-build = "0.1"
10+
11+
[lib]
12+
crate-type = ["staticlib"]
13+
14+
[dependencies]
15+
swift-bridge = "0.1"

clients/ios/TodoList/BridgingHeader.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef BridgingHeader_h
2+
#define BridgingHeader_h
3+
4+
#include "Generated/SwiftBridgeCore.h"
5+
#include "Generated/ios/ios.h"
6+
7+
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

0 commit comments

Comments
 (0)