godot-rust
v1.1.4
Published
Scripts to automate the creation of a Godot project with Rust
Readme
Godot Rust Tools
This repository contains tools for working with Rust and Godot.
Prerequisites
Required
Optional
- Godot – Used to run necessary commands for Godot projects
- Godot needs to be in your path to run the
godotcommand
- Godot needs to be in your path to run the
- Git – Used to run necessary commands for Git projects
- Git needs to be in your path to run the
gitcommand
- Git needs to be in your path to run the
Commands
These are the supported commands.
# To see the information about the commands:
npx godot-rust@latest help
# To see the information about a specific command (where <command> is the command you want help for):
npx godot-rust@latest <command> -hNew Rust Project
This will create a new rust project with the necessary files to work with Godot.
To create a new project, run the following command, it has interactive prompts to help you create your project.
npx godot-rust@latest newConvert Existing Godot Project
This will convert an existing Godot project to a Godot Rust project.
Run the command in a folder that contains a project.godot file, it has interactive prompts to help you convert your project.
- Add Rust to the project
- Adds a new
rustfolder to the project
- Adds a new
- Restructure the project and add Rust (Backup your project before running a restructure)
- Moves the existing project to a
<my-project>/godotfolder - Creates a new Rust project in
<my-project>/rust
- Moves the existing project to a
npx godot-rust@latest convertAdd Tools
This will allow you to add tools that are available in the database. This supports three types of tools:
- Crates – Rust libraries
- Godot Asset Libraries – Godot assets
- Github Releases – Libraries that are from Github releases page marked as
latest
npx godot-rust@latest addRemove Tools
This will allow you to remove tools from your project.
Note: Currently this only supports removing Rust crates.
npx godot-rust@latest remove
# or
npx godot-rust@latest rm