Skip to content

🎥 Make videos programmatically with React

add documentation for compositor

Jonny Burger061e0d746c97
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 27647d746d..cd340e1123 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -72,7 +72,7 @@ pnpm test
in either a subpackage to run tests for that package or in the root to run all tests.
-### Testing `@remotion/player`
+### Running the `@remotion/player` testbed
You can test changes to [@remotion/player](https://remotion.dev/docs/player) by starting the Player testbed:
@@ -83,7 +83,7 @@ pnpm start
For information about testing, please consult [TESTING.md](./TESTING.md).
-### Testing documentation
+### Running documentation
You can run the Docusaurus server that powers our docs using:
@@ -91,3 +91,7 @@ You can run the Docusaurus server that powers our docs using:
cd packages/docs
pnpm start
```
+
+### Developing Rust parts
+
+To develop the Rust parts of Remotion, see the README in [compositor/README.md](compositor/README.md)
diff --git a/packages/compositor/README.md b/packages/compositor/README.md
index f91933e846..e273fb26db 100644
--- a/packages/compositor/README.md
+++ b/packages/compositor/README.md
@@ -1,16 +1,29 @@
# Rust development
+To participate in the development of the Rust parts of Remotion, you need to do additional steps. If you don't want to change the Rust code, you don't have to set anything up.
+
+## Setup
+
+These are instructions for macOS. Contributions for other platforms are appreciated.
+
+First, install Cargo, if you don't have it, or upgrade to a version that supports `edition-2021`:
+
+```
+curl https://sh.rustup.rs -sSf | sh
+```
+
+Second, install components that allow for cross-compilation:
+
```sh
sh install_platforms.sh
```
+Third, install linkers for cross compilation:
+
```sh
brew install MaterializeInc/crosstools/x86_64-unknown-linux-gnu
brew install MaterializeInc/crosstools/aarch64-unknown-linux-gnu
brew install messense/macos-cross-toolchains/x86_64-unknown-linux-musl
brew install messense/macos-cross-toolchains/aarch64-unknown-linux-musl
-```
-
-```sh
brew install mingw-w64
```