Does not work on Godot 4 beta 5 (but does with beta4) · Issue #25 · godot-rust/gdext (original) (raw)
Hey, first, just wanted to say this is an amazing project, thank you for doing this!
I just started looking at the project yesterday and was able to get my extension to compile and imported into Godot 4 beta 5 with this
use godot::prelude::*;
struct MyProject;
#[gdextension] unsafe impl ExtensionLibrary for MyProject {}
However, once I added my first struct it caused Godot to crash
use godot::engine::Control; use godot::prelude::*;
#[derive(GodotClass)] #[class(base = Control)] pub struct MainMenu { #[base] base: Base, }
#[godot_api] impl MainMenu { }
I tried downloading the example and got the same results. I downgraded to beta 4 and both the example and my code ran ok. (Again, love how this works, seeing my MainMenu type in Godot was a thrill)
Other pertinent info is I'm running this on macos x86_64 (sorry I can't help with the mac arm64 question in #21)