Skip to content

N40: godot-rust #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/news/040/godot-rust-gdextension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions content/news/040/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,35 @@ _Discussions:
[bevy_news]: https://bevyengine.org/news/bevy-0-9/
[bevy_repo]: https://github.com/bevyengine/bevy

### [godot-rust][gd-github]

![godot-rust GDExtension](godot-rust-gdextension.png)

godot-rust ([GitHub][gd-github], [Discord][gd-discord], [Twitter][gd-twitter])
is a Rust library that provides bindings for the Godot engine. Just this month,
a [Mastodon account][gd-mastodon] was opened to share development info.

November brings the long-awaited GDExtension binding, enabling access to Godot 4
features from Rust. Still in an early experimental phase, it is already possible
to run smaller examples like Godot's famous Dodge-the-Creeps tutorial game.

Compared to the GDNative binding, APIs are a bit simpler now:

- One central `Gd<T>` pointer combining `Ref`/`Instance` and their type-states
- Self-registering classes: `#[derive(GodotClass)]` and you're good-to-go
- Less `unsafe`, less `unwrap()`, more runtime checks

The repository is available at [godot-rust/gdextension][gd-github], while the
current development status is tracked in [#24][gd-24]. The [book][gd-book] as
well as documentation are still under construction.

[gd-24]: https://github.com/godot-rust/gdextension/issues/24
[gd-book]: https://github.com/godot-rust/book
[gd-github]: https://github.com/godot-rust/gdextension
[gd-discord]: https://discord.gg/aKUCJ8rJsc
[gd-twitter]: https://twitter.com/GodotRust
[gd-mastodon]: https://mastodon.gamedev.place/@GodotRust

## Learning Material Updates

## Tooling Updates
Expand Down