gd-resource-derive 0.3.0

proc macro that does `impl into<$YOUR_STRUCT> for godot::prelude::Resource`
Documentation

Eric's Godot Resource Derive Macro

Derive macro for my specific use case:

  • Working on a Godot project with Rust
  • Resources written in gdscript, with Corresponding structs on the Rust side
  • Too lazy to write:
    • impl Into<$TYPE> for Resource
    • impl GodotConvert for $TYPE
    • impl FromGodot for $TYPE
    • every time

Known wacky edge cases:

  • If your struct is a GodotClass with a base of Resource (i.e. if your resource is written in rust), I'm pretty sure the macro fails.
    • But also, I don't think you'd need this crate in that case?