Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Rust bindings for Godot 4
Website | GitHub | Book | API Docs | Discord | Mastodon | Twitter | Sponsor
The godot crate integrates the Rust language with Godot 4.
Godot is an open-source game engine, focusing on a productive and batteries-included 2D and 3D experience.
Its GDExtension API allows integrating third-party languages and libraries.
Philosophy
The Rust binding is an alternative to GDScript, with a focus on type safety, scalability and performance.
The primary goal of this library is to provide a pragmatic Rust API for game developers. Recurring workflows should be simple and require minimal boilerplate. APIs are designed to be safe and idiomatic Rust wherever possible. Due to interacting with Godot as a C++ engine, we sometimes follow unconventional approaches to provide a good user experience.
Example
The following code snippet demonstrates writing a simple Godot class Player
in Rust.
use *;
use ;
// Declare the Player class inheriting Sprite2D.
// Implement Godot's virtual methods via predefined trait.
// Implement custom methods that can be called from GDScript.