{"id":19635065,"url":"https://github.com/pgbiel/hello-gdext-wasm","last_synced_at":"2025-07-17T16:41:11.382Z","repository":{"id":198589111,"uuid":"701111566","full_name":"PgBiel/hello-gdext-wasm","owner":"PgBiel","description":"Rust `gdext` wasm test project","archived":false,"fork":false,"pushed_at":"2023-10-19T23:43:50.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T00:18:23.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PgBiel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-06T00:11:39.000Z","updated_at":"2024-09-08T16:23:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"1222d2dd-3879-49cf-8037-7a60d0c9accb","html_url":"https://github.com/PgBiel/hello-gdext-wasm","commit_stats":null,"previous_names":["pgbiel/hello-gdext-wasm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PgBiel%2Fhello-gdext-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PgBiel%2Fhello-gdext-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PgBiel%2Fhello-gdext-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PgBiel%2Fhello-gdext-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PgBiel","download_url":"https://codeload.github.com/PgBiel/hello-gdext-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319757,"owners_count":21570451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T12:23:41.102Z","updated_at":"2025-07-17T16:41:11.373Z","avatar_url":"https://github.com/PgBiel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-gdext-wasm\nRust `gdext` wasm test project\n\nExpects Godot v4.4.x.\n\n## Setup\n\nPlease check https://godot-rust.github.io/book/toolchain/export-web.html for the latest instructions on exporting to web.\n\nThis project is ready for usage, but needs some additional setup on your side:\n\n1. Ensure you have nightly cargo installed through `rustup`\n    - Also ensure you install the following components:\n        ```sh\n        rustup toolchain install nightly\n        rustup component add rust-src --toolchain nightly\n        rustup target add wasm32-unknown-emscripten --toolchain nightly\n        ```\n\n2. Ensure you have emsdk v3.1.73\n    - If you don't have it, you may follow these steps:\n      1. Go to a directory where to install it\n      2. `git clone https://github.com/emscripten-core/emsdk.git`\n      3. `cd emsdk`\n      4. `./emsdk install 3.1.73`\n      5. `./emsdk activate 3.1.73`\n      6. `source ./emsdk_env.sh`\n      7. Confirm with `emcc --version`\n\n3. Come back to this project's root folder with `cd`, and run `cd rust` to access the Rust folder\n4. Run `./build-wasm.sh` to build the Rust code\n    - By default, this will build both single- and multi-threaded variants so the \"Thread Support\" checkbox in the Godot editor works regardless of whether it's on or off.\n    - **Note:** cargo may ask you to run a rustup command to fetch the Rust standard library's source code.\n      - If prompted with a suggested `rustup` command, make sure to run it.\n5. You can now open the `godot/` folder in the Godot editor and attempt to export to the web.\n    - **First-time setup:** create export presets (and download export templates if needed)\n      1. Go to Project \u003e Export... at the top toolbar\n      2. If export templates are missing, use the button to download them\n      3. Click \"Add...\" to add a new preset\n      4. Select \"Web\"\n      5. Enable \"Extensions Support\"\n      6. (Optional) Enable \"Thread Support\" (should work with or without)\n      7. Choose an Export Path (e.g. `/home/user/Godot/wasmtest/index.html`)\n      8. Press \"Export project\" to test it\n\n## Exporting to the web\n\nLatest instructions can be found at https://godot-rust.github.io/book/toolchain/export-web.html.\n\n1. Compile with `cd rust \u0026\u0026 ./build-wasm.sh`\n2. Export at Project \u003e Export... \u003e Web \u003e Export Project\n3. To test your exported web project, press \"Remote deploy \u003e Run in Browser\" near the run button at the top\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgbiel%2Fhello-gdext-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgbiel%2Fhello-gdext-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgbiel%2Fhello-gdext-wasm/lists"}