
S
Publisher
sanpi
cargo-godot
Misc
Cargo Rust Development GDExtension Integration Workflow
Cargo helper to improve godot rust developement experience.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
cargo-godot
Cargo helper to improve godot rust developement experience.
Install
cargo install cargo-godot
Use
In your rust project, you should add metadata in the Cargo.toml to specify the godot project path:
[package.metadata.godot]
project = "../godot"
Then, you can directly run/export/debug your project directly via cargo:
cargo godot run
cargo-godot
generates the .gdextension
file at the top of rust project. You
can create a link in your godot project:
cd ../godot
ln -s ../rust/project.gdextension
Configuration
project
: required. The path to the directory contening your godot project;godot_executable
: optional. The godot executable used to launch your project.