{"id":27942145,"url":"https://github.com/pranabdas/wasm-rust-react","last_synced_at":"2025-10-19T06:03:37.529Z","repository":{"id":116040204,"uuid":"566367918","full_name":"pranabdas/wasm-rust-react","owner":"pranabdas","description":"Build next generation web applications with near native performance using WebAssembly (transpiled from Rust code).","archived":false,"fork":false,"pushed_at":"2024-10-16T09:41:42.000Z","size":1565,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-18T04:54:14.701Z","etag":null,"topics":["react","rust","wasm","wasm-bindgen","wasm-pack","webassembly","webworker"],"latest_commit_sha":null,"homepage":"https://pranabdas.github.io/wasm-rust-react/","language":"TypeScript","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/pranabdas.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":"2022-11-15T14:26:27.000Z","updated_at":"2024-10-16T09:36:51.000Z","dependencies_parsed_at":"2023-05-16T00:00:43.718Z","dependency_job_id":null,"html_url":"https://github.com/pranabdas/wasm-rust-react","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/pranabdas%2Fwasm-rust-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fwasm-rust-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fwasm-rust-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranabdas%2Fwasm-rust-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranabdas","download_url":"https://codeload.github.com/pranabdas/wasm-rust-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252867592,"owners_count":21816705,"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":["react","rust","wasm","wasm-bindgen","wasm-pack","webassembly","webworker"],"created_at":"2025-05-07T11:26:35.096Z","updated_at":"2025-10-19T06:03:37.420Z","avatar_url":"https://github.com/pranabdas.png","language":"TypeScript","readme":"# React Application using Web-Assembly (Rust)\r\n\r\nYou must have node (and npm) installed.\r\n\r\n### Initialize React project\r\n```console\r\nnpx -y create vite@latest wasm-rust-react -- --template react-ts\r\n```\r\n\r\n### Install tools\r\n\r\nInstall rust related tools using the setup script:\r\n```console\r\nbash setup.sh\r\n```\r\n\r\nCreate new rust lib:\r\n```console\r\ncargo new rust-libs --lib\r\ncd rust-libs\r\ncargo add wasm-bindgen\r\n```\r\n\r\nChange crate-type in `Cargo.toml` and add rust byproducts in `.gitignore`.\r\n```rs\r\n[lib]\r\ncrate-type = [\"cdylib\"]\r\n```\r\n\r\nBuild the rust libs:\r\n```console\r\nwasm-pack build --target web\r\n```\r\n\r\nInstall/add package to npm:\r\n```console\r\nnpm i ./rust-libs/pkg\r\n```\r\n\r\nOr add `\"rust-libs\": \"file:rust-libs/pkg\"` to `package.json` dependencies, and\r\nrun:\r\n```console\r\nnpm i\r\n```\r\n\r\nStart development server:\r\n```console\r\nnpm start\r\n```\r\n\r\nTo update rust dependencies:\r\n\r\n```console\r\ncargo install cargo-update --features vendored-openssl\r\ncargo install-update -a\r\n```\r\n\r\n### Resources\r\n\r\n- https://rustwasm.github.io/docs/book/\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranabdas%2Fwasm-rust-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranabdas%2Fwasm-rust-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranabdas%2Fwasm-rust-react/lists"}