Open Bogay opened 10 months ago
Maybe related: https://github.com/godot-rust/gdnative/pull/1039
Should we put latest compatible Godot version in Cargo.toml
?
Oh, the links to godot doc are written in doc comments. So it's harder to generate it 🤔
Doc comments are just sugar for #[doc]
attributes so they can be generated using proc-macros. I guess we can also do text-based search & replace in the build script but that's much more of a risky option.
Copied from discord:
Found outdated links in the error message. Perhaps the version string could be extracted from Cargo.toml at compile time to make it more consistent?
https://github.com/godot-rust/gdnative/blob/6dc972190f6cefb15eef6588c81a015983718df5/gdnative-derive/src/variant/attr.rs#L72-L79
another one with similar signature:
https://github.com/godot-rust/gdnative/blob/6dc972190f6cefb15eef6588c81a015983718df5/gdnative-derive/src/variant/attr/field.rs#L36-L43