Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

feat: upgrade gdext 0.4.5 -> 0.5.4, target Godot 4.7, Rust Edition 2024 - #63

Merged
dev-parkins merged 5 commits into
mainfrom
feature/gdext-0.5-upgrade
Jul 21, 2026
Merged

dev-parkins merged 5 commits into
mainfrom
feature/gdext-0.5-upgrade

Conversation

@dev-parkins

Copy link
Copy Markdown
Owner

Summary

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 fixed workspace-wide
  • Cargo.lock now committed (dependency graph verified post-upgrade)
  • Fixed godot_bind_tests.gd's invalid PropertyHint.NONE-style GDScript enum access (should be flat PROPERTY_HINT_NONE) — never exercised before since no Godot binary was available until this session; this was blocking headless_integration.rs
  • README prerequisites and CHANGELOG updated to reflect the new baseline (Godot support claim narrowed to "4.2+, tested against 4.7" since there's no CI version matrix)

Test plan

  • cargo fmt --check, cargo clippy --workspace --all-targets --all-features -- -D warnings, cargo test --workspace all green (883 tests)
  • Release build succeeds; extension loads and runs cleanly under Godot 4.7.stable headless
  • ferris-test --all: unchanged 19/33 corpus pass rate — no regressions from the upgrade
  • cargo test -p ferrisscript_godot_bind --test headless_integration -- --ignored: both tests now pass (previously broken by the GDScript enum bug above)
  • The 10 #[ignore]d godot_bind unit 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 plain cargo test

🤖 Generated with Claude Code

dev-parkins and others added 5 commits July 21, 2026 14:07
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>
@dev-parkins
dev-parkins merged commit b69daef into main Jul 21, 2026
8 checks passed
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant