Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add the codegen step to the cast README

Manav Rathiae62b72030ed
diff --git a/mobile/native/apple/apps/cast/README.md b/mobile/native/apple/apps/cast/README.md
index 5551e12835..8d9f67fe15 100644
--- a/mobile/native/apple/apps/cast/README.md
+++ b/mobile/native/apple/apps/cast/README.md
@@ -6,8 +6,17 @@ Source code for the Ente Cast tvOS app.
1. Install [Xcode](https://developer.apple.com/xcode/) and [Rust](https://www.rust-lang.org/tools/install). In Xcode install the tvOS platform.
-2. Open `Cast.xcodeproj` in Xcode and run the `Cast` scheme.
+2. Generate the Swift bindings:
+
+ ```sh
+ cd rust
+ cargo codegen native cast
+ ```
+
+3. Open `Cast.xcodeproj` in Xcode and run the `Cast` scheme.
> [!NOTE]
>
> The first build will install the Rust `nightly` toolchain and `rust-src`. They are needed for building Rust for tvOS targets.
+>
+> Re-run `cargo codegen native cast` whenever the UniFFI-exported surface of the cast crate (`rust/bindings/uniffi/cast`) changes.