This project uses the Rust GDExtension (https://godot-rust.github.io/) to accelerate compute‐shader <-> physics utilities in Godot 4.4.x. Before opening the project, make sure you have Rust and Cargo installed so that the extension can be built.
winget install --id=Rustlang.Rustup -e
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
brew install rustup
rustup-init
source "$HOME/.cargo/env"
- Change into the
rust
directory (IN THIS PROJECT, like the actual rust directory in this git repo):cd rust
- For a debug build (default):
cargo build
The compiled dynamic library (
.dll
/.so
/.dylib
) will be placed inrust/target/{debug,release}
and is automatically referenced byrust_bath.gdextension
.
- Launch Godot 4 (MUST BE IN FORWARD+, compatibility is not supported yet because of compute shaders)
- Open
project.godot
at the project root. - The GDExtension will load the Rust library on startup.
Before committing any changes, run this in the bath main project directory:
gdformat --use-spaces=4 .
This keeps GDScript files formatted consistently across the repo.