This repository was archived by the owner on Jul 21, 2026. It is now read-only.
Repository navigation
feat: upgrade gdext 0.4.5 -> 0.5.4, target Godot 4.7, Rust Edition 2024 - #63
Merged
Merged
Conversation
Modernizes the GDExtension binding stack per the v0.0.5 stabilization plan:
- godot crate 0.4 -> 0.5 (api-4-3 -> api-4-7 feature), Rust Edition 2021 ->
2024 across all four workspace crates, MSRV declared as 1.94
- crates/godot_bind/src/lib.rs API surface migration:
- PropertyInfo/PropertyHintInfo: godot::meta -> godot::register::info
- export_info_functions -> export_fns
- PropertyInfo.class_id: ClassId -> class_name: StringName (FerrisScript
exports are never Godot-object-typed, so this is StringName::default())
- INode2D virtuals renamed: get_property_list/get_property/set_property
-> on_get_property_list/on_get/on_set
- godot_test/ferrisscript.gdextension compatibility_minimum 4.1 -> 4.2;
godot_test/project.godot engine features 4.5 -> 4.7
- Edition 2024 fallout: std::env::remove_var is now unsafe (2 call sites
wrapped); clippy collapsible-if / needless-return lints across the
workspace fixed via cargo clippy --fix + manual let-chain rewrites in
godot_bind
- Cargo.lock committed now that the post-upgrade dependency graph is
verified working (workspace ships a cdylib + a bin, not a pure library)
- Fixed godot_bind_tests.gd's invalid PropertyHint.NONE-style GDScript
enum access (should be the flat PROPERTY_HINT_NONE constant) - this had
never been exercised since no Godot binary was available until this
session, and blocked crates/godot_bind/tests/headless_integration.rs
- README prerequisites and CHANGELOG updated to reflect the new baseline
Verified: cargo fmt/clippy -D warnings/test --workspace all green (883
tests); release build succeeds; extension loads and runs cleanly under
Godot 4.7.stable headless (ferris-test harness: unchanged 19/33 corpus
pass rate, no regressions from the upgrade); both previously-broken
headless_integration.rs tests now pass. The 10 #[ignore]d godot_bind
tests remain correctly ignored - they require the gdext FFI binding
singleton, which only initializes when a live Godot process loads the
compiled extension, not under plain cargo test.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Phase 4 of the v0.0.5 stabilization plan called for manually verifying PR #60's Inspector property refresh fix in the Godot editor. This environment has no interactive editor, so instead: a headless GDScript test (inspector_refresh_test.gd + test_inspector_refresh.tscn) drives a FerrisScriptNode directly through script_path changes and asserts on get_property_list() results, exercising 4 of the fix's 5 checklist items against a live Godot 4.7.stable engine post-gdext-0.5.4-upgrade: - Properties clear on compile error - Properties repopulate when the script is fixed - Rapid toggling between broken/valid leaves a consistent final state - Nonexistent script path clears properties (Item 4, multi-script isolation, wasn't exercised in this single-node scenario; the fix is instance-scoped so risk there is low.) Run: godot --headless --path godot_test --scene test_inspector_refresh.tscn --quit-after 5 Result: [SUMMARY] Total: 5, Passed: 5, Failed: 0 Documented in docs/planning/v0.0.5/INSPECTOR_PROPERTY_FIX.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ction Per the v0.0.5 stabilization plan: the version originally slated as 'v0.0.5: LSP Foundation + Safety Fix' is renumbered to v0.0.6, cascading every later version up by one (v0.0.6->v0.0.7, v0.0.7->v0.0.8, etc.) in docs/planning/ROADMAP_MASTER.md. v0.1.0 and beyond are unaffected. - git mv docs/planning/v0.0.5/ -> docs/planning/v0.0.6/ (5 files), fixed internal cross-references between the moved files - Inserted a new 'v0.0.5: Stabilization & Engine Modernization' section documenting this cycle's actual phases (PR merges, housekeeping, gdext 0.5.4/Godot 4.7 upgrade, Inspector fix verification) - Marked PR #60's Inspector-refresh acceptance criteria complete in the moved v0.0.6/README.md checklist (shipped and verified in v0.0.5) - Added a superseded-content banner to docs/planning/README.md, which predates this restructuring and references roadmap filenames that were never created Fixes a markdown-lint failure from the prior commit (docs/planning/v0.0.5/ INSPECTOR_PROPERTY_FIX.md used '+' list markers instead of '-'). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Moves the accumulated [Unreleased] changes into a dated v0.0.5 'Stabilization & Engine Modernization' section and adds a matching RELEASE_NOTES.md entry, ready for the v0.0.5 tag once this PR merges. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… docs Follow-up to the previous renumbering commit: RUSTDOC_IMPLEMENTATION_PLAN.md, CONSOLIDATED_TEST_FRAMEWORK_IMPLEMENTATION.md, LSP_ARCHITECTURE_SUPPORT.md, and README.md still referred to their own plan as 'v0.0.5' in prose (title, decision log, acceptance criteria) after the directory move to v0.0.6/. Renumbered those internal references while leaving INSPECTOR_PROPERTY_FIX.md's and README.md's genuine 'shipped/verified in v0.0.5' status lines alone, since that fix did ship in the real v0.0.5 (this stabilization cycle). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernizes the GDExtension binding stack per the v0.0.5 stabilization plan:
api-4-3→api-4-7feature), Rust Edition 2021 → 2024 across all four workspace crates, MSRV declared as 1.94crates/godot_bind/src/lib.rsAPI surface migration:PropertyInfo/PropertyHintInfo:godot::meta→godot::register::infoexport_info_functions→export_fnsPropertyInfo.class_id: ClassId→class_name: StringName(FerrisScript exports are never Godot-object-typed, so this isStringName::default())INode2Dvirtuals renamed:get_property_list/get_property/set_property→on_get_property_list/on_get/on_setgodot_test/ferrisscript.gdextensioncompatibility_minimum4.1 → 4.2;godot_test/project.godotengine features "4.5" → "4.7"std::env::remove_varis nowunsafe(2 call sites wrapped); clippycollapsible-if/needless-return lints fixed workspace-wideCargo.locknow committed (dependency graph verified post-upgrade)godot_bind_tests.gd's invalidPropertyHint.NONE-style GDScript enum access (should be flatPROPERTY_HINT_NONE) — never exercised before since no Godot binary was available until this session; this was blockingheadless_integration.rsTest plan
cargo fmt --check,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo test --workspaceall green (883 tests)ferris-test --all: unchanged 19/33 corpus pass rate — no regressions from the upgradecargo test -p ferrisscript_godot_bind --test headless_integration -- --ignored: both tests now pass (previously broken by the GDScript enum bug above)#[ignore]dgodot_bindunit tests remain correctly ignored — confirmed they require the gdext FFI binding singleton, which only initializes when a live Godot process loads the compiled extension, not under plaincargo test🤖 Generated with Claude Code