Skip to content
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

Remove gensym, fix Wasm class registration #1092

Merged
merged 3 commits into from
Mar 23, 2025
Merged

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Mar 22, 2025

Removes gensym crate and replaces it with our own proc-macro, thus further cutting down on dependencies.

Fixes a regression related to auto-registering classes in Wasm, introduced in #1069 (comment).

Also updates feature docs. At the same time, I updated the demo-projects repo to contain an export preset for Web, and a correct .cargo/config.toml file. I tested Web export locally with Godot 4.4, works for me with the build-wasm.sh script.

@Bromeon Bromeon added bug c: wasm WebAssembly export target quality-of-life No new functionality, but improves ergonomics/internals labels Mar 22, 2025
@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1092

Bromeon added 2 commits March 22, 2025 19:46
Changes:
* Remove `gensym`, no longer in use
* Remove `owning-ref`, already caught by cargo-deny due to RustSec anyway
* Add `rand`, it has a ridiculous dep tree for what it offers
  - for low-level randomness, we can use Godot or libc::rand().
@Bromeon Bromeon force-pushed the bugfix/wasm-registration branch from 2ba8c38 to c5d76d9 Compare March 22, 2025 19:29
Copy link
Contributor

@PgBiel PgBiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thanks for the fix!

Tested and works locally.

@Bromeon Bromeon added this pull request to the merge queue Mar 23, 2025
@Bromeon
Copy link
Member Author

Bromeon commented Mar 23, 2025

Thank you for testing! 😊

Merged via the queue into master with commit 62a7381 Mar 23, 2025
16 checks passed
@Bromeon Bromeon deleted the bugfix/wasm-registration branch March 23, 2025 04:54
@PgBiel PgBiel mentioned this pull request Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: wasm WebAssembly export target quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants