Skip to content

jarrodmedrano/godot-rust-mac-arm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust and Godot and Mac, living together in peace

Godot, Rust, and Mac

I built this starter repo, I was having trouble getting it to work by following other people's tutorials. Hopefully this helps someone.

This repo is specifically for people who use Macs with the M1 chip.

The key was adding the .cargo/config.toml and specifying that you're building for the M1 chip.

target = "aarch64-apple-darwin"

You also need to make sure the file godot/rust.gdextension is connecting to the correct built file:

[libraries]
macos.debug.arm64 = "res://../target/aarch64-apple-darwin/debug/librust.dylib"
macos.release.arm64 = "res://../target/aarch64-apple-darwin/debug/librust.dylib"

Here I am building to a target folder in the root directory. So it needs to go up one level ../target.

how to build

cd rust
cargo build

Once the build is done, open project.godot and voila!

Learn more about the Rust and Godot book.

About

Starter repo for rust and godot on a mac

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published