Skip to content

FYI [wasm] the name of your rust library MUST be different than the godot project name #934

@0x53A

Description

@0x53A

I tried to get wasm export to work but would always get the error

Can't resolve symbol gdext_rust_init. Error: Tried to lookup unknown symbol "gdext_rust_init" in dynamic lib: game.wasm

That is, until I stumbled upon someone having the same issue and posting the solution: https://discord.com/channels/723850269347283004/1288906885746917447

Turns out, godot itself exports a file named <projectname>.wasm, so if you have named your rust library the same as your godot project, they will overwrite each other!

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: wasmWebAssembly export targetquality-of-lifeNo new functionality, but improves ergonomics/internals

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions