{"id":13341508,"url":"https://github.com/FIL1994/Rust-WASM-Template","last_synced_at":"2025-03-11T21:31:14.645Z","repository":{"id":76635357,"uuid":"118503743","full_name":"FIL1994/Rust-WASM-Template","owner":"FIL1994","description":"a template for Rust WASM and webpack","archived":false,"fork":false,"pushed_at":"2018-01-22T19:44:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:32:26.063Z","etag":null,"topics":["rust","wasm","web-assembly","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FIL1994.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-22T19:23:24.000Z","updated_at":"2018-01-22T19:26:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"4988c101-152d-49a8-af7d-bcdf7c68d4c5","html_url":"https://github.com/FIL1994/Rust-WASM-Template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIL1994%2FRust-WASM-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIL1994%2FRust-WASM-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIL1994%2FRust-WASM-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIL1994%2FRust-WASM-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FIL1994","download_url":"https://codeload.github.com/FIL1994/Rust-WASM-Template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243115417,"owners_count":20238755,"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":["rust","wasm","web-assembly","webpack"],"created_at":"2024-07-29T19:25:28.827Z","updated_at":"2025-03-11T21:31:14.638Z","avatar_url":"https://github.com/FIL1994.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust-WASM-Template\n\nNOTE: this is for windows only\n\n## Use Rust Nightly\n\n\n```\nrustup toolchain install nightly\nrustup target add wasm32-unknown-unknown --toolchain nightly\nrustup default nightly\n```\n\nfunctions accessible to WebAssmebly need to be marked with #[no_mangle]\n\n## Using NPM\n\n```\n npm install\n // build project\n npm run build\n // run project\n npm run start\n```\n\n## Getting WASM\n```\n// es7 async await\n(\n  async () =\u003e {\n   \n    let importObject;\n    const res = await fetch('wasm_test.wasm');\n    const bytes = await res.arrayBuffer();\n    const results = await WebAssembly.instantiate(bytes, importObject);\n\n    const {add, subtract, loop_add} = results.instance.exports;\n  }\n)();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFIL1994%2FRust-WASM-Template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFIL1994%2FRust-WASM-Template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFIL1994%2FRust-WASM-Template/lists"}