
The godot-rust library provides Rust language bindings for the Godot game engine.
Rust is an alternative to GDScript, with different trade-offs for users. While GDScript enables fast prototyping and short feedback cycles, games of larger scale may benefit from a stronger type system, a rich library ecosystem and native performance.
The Rust bindings focus on safety, despite interacting with the engine over FFI. Many APIs are designed to catch errors at compile time, while others offer runtime checks to prevent undefined behavior.
You can use godot-rust to build games, editor plugins or other applications within the Godot ecosystem. We use Godot's GDExtension API and provide binary compatibility down to Godot 4.1. For Godot 3, there is also the gdnative crate, which isn't actively developed anymore.
Getting started
To get familiar with godot-rust, you can use any of the following resources:
Book: read tutorials and step-by-step guides.
API Docs: a reference to look up specific symbols.
GitHub: follow latest development or contribute to the project.
Community
Get to know other users and stay up-to-date with development: