Skip to content

A template for a godot-rust project, with web export enabled

Notifications You must be signed in to change notification settings

milesdesiran/godot-rs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What

A template for a godot-rust project. Only Unix-compatible at the moment, but if you're using Rust, you're probably also on Linux to begin with. I'll make Windows scripts when I feel like it or if someone wants to PR it (does Windows have a sed?)

How

Clone it, then run init.sh. init.sh takes 1 argument, which is the name of your project. So ./template.sh DodgeTheCreeps.

Then, cd into the rust/ directory and cargo build it.

Next, open the project.godot file in any Godot version 4.1+. It'll complain about an empty project.godot but that keeps this template somewhat version-agnostic. You should be good to go after that.

build-web.sh does what it sounds like. It will grab and install emscripten and the nightly toolchain for you too. If you don't care about web, you can ignore this script.

Why

The setup steps are all pretty much the same every time.

Also godot-rust has web export but C# doesn't yet, and I hate dynamically-typed languages.

Extra Steps

You do still need to configure the export template. If you're doing web single-threaded export, remove this line from the Cargo config.

About

A template for a godot-rust project, with web export enabled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published