rust

Adding Custom Properties With Godot Rust

I ran into a bit of trouble getting a custom property defined in a godot-rust project to show up in the Godot editor. It finally turned out that my difficulties were unrelated to Godot or godot-rust and actually a library misconfiguration error (I renamed my library’s name in Cargo.toml and forgot to fix the .gdnlib) but in the process I discovered that godot-rust’s documentation is rather lacking when it comes to the actual glue layer that ties Godot and the rust bindings together.

MinGW cannot find pthread

I’ve been trying to build rust on Windows for a while now, and it keeps failing. The build was failing at first due to this issue, but apparently running make after that should succeed. In my case however, it would fail again, and again, with an error ld.exe: cannot find -lpthread. I searched high and low for someone else with the same error, but most people were having undefined references in pthread since they were linking the library before linking the object file that actually references pthread.

MinGW doesn't support forking

I realized a while back that I learn a new language best when I work on an actual program on it, as opposed to just following tutorials and reading books. So, I decided to look around for a fun program to write in order to learn rust. Back in college, as part of a network programming class, I was tasked with writing a rudimentary shell, and I can remember how much fun it was, so I decided to write a basic shell in rust.