{"id":29734301,"url":"https://github.com/wasm-bindgen/wasm-bindgen","last_synced_at":"2026-04-02T15:47:07.890Z","repository":{"id":37502436,"uuid":"114685405","full_name":"wasm-bindgen/wasm-bindgen","owner":"wasm-bindgen","description":"Facilitating high-level interactions between Wasm modules and JavaScript","archived":false,"fork":false,"pushed_at":"2026-02-20T21:26:26.000Z","size":37089,"stargazers_count":8863,"open_issues_count":532,"forks_count":1192,"subscribers_count":92,"default_branch":"main","last_synced_at":"2026-02-20T21:28:15.047Z","etag":null,"topics":["binding-generator","javascript","rust","rust-wasm","wasm"],"latest_commit_sha":null,"homepage":"https://wasm-bindgen.github.io/wasm-bindgen/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wasm-bindgen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yaml","license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["daxpedda"]}},"created_at":"2017-12-18T20:38:44.000Z","updated_at":"2026-02-20T16:39:16.000Z","dependencies_parsed_at":"2024-02-08T11:28:20.117Z","dependency_job_id":"10aabb34-ee43-4a92-9843-a8744239a16b","html_url":"https://github.com/wasm-bindgen/wasm-bindgen","commit_stats":{"total_commits":3126,"total_committers":476,"mean_commits":6.567226890756302,"dds":0.661868202175304,"last_synced_commit":"e250852b220d1ecb0a4b23b3e04d0a2d8c7304bf"},"previous_names":["wasm-bindgen/wasm-bindgen","rustwasm/wasm-bindgen"],"tags_count":120,"template":false,"template_full_name":null,"purl":"pkg:github/wasm-bindgen/wasm-bindgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-bindgen%2Fwasm-bindgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-bindgen%2Fwasm-bindgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-bindgen%2Fwasm-bindgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-bindgen%2Fwasm-bindgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasm-bindgen","download_url":"https://codeload.github.com/wasm-bindgen/wasm-bindgen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasm-bindgen%2Fwasm-bindgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29731728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T20:09:16.275Z","status":"ssl_error","status_checked_at":"2026-02-22T20:09:13.750Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["binding-generator","javascript","rust","rust-wasm","wasm"],"created_at":"2025-07-25T11:01:28.267Z","updated_at":"2026-04-02T15:47:07.861Z","avatar_url":"https://github.com/wasm-bindgen.png","language":"Rust","readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch1\u003e\u003ccode\u003ewasm-bindgen\u003c/code\u003e\u003c/h1\u003e\n\n  \u003cp\u003e\n    \u003cstrong\u003eFacilitating high-level interactions between Wasm modules and JavaScript.\u003c/strong\u003e\n  \u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://github.com/wasm-bindgen/wasm-bindgen/actions/workflows/main.yml?query=branch%3Amain\"\u003e\u003cimg src=\"https://github.com/wasm-bindgen/wasm-bindgen/actions/workflows/main.yml/badge.svg?branch=main\" alt=\"Build Status\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/wasm-bindgen\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/wasm-bindgen.svg?style=flat-square\" alt=\"Crates.io version\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://crates.io/crates/wasm-bindgen\"\u003e\u003cimg src=\"https://img.shields.io/crates/d/wasm-bindgen.svg?style=flat-square\" alt=\"Download\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://docs.rs/wasm-bindgen\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square\" alt=\"docs.rs docs\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003ch3\u003e\n    \u003ca href=\"https://wasm-bindgen.github.io/wasm-bindgen/\"\u003eGuide (main branch)\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://docs.rs/wasm-bindgen\"\u003eAPI Docs\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CONTRIBUTING.md\"\u003eContributing\u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://discord.gg/xMZ7CCY\"\u003eChat\u003c/a\u003e\n  \u003c/h3\u003e\n\n  \u003csub\u003eBuilt with 🦀🕸 by \u003ca href=\"https://rustwasm.github.io/\"\u003eThe Rust and WebAssembly Working Group\u003c/a\u003e\u003c/sub\u003e\n\u003c/div\u003e\n\n## Install `wasm-bindgen-cli`\n\nYou can install it using `cargo install`:\n\n```\ncargo install wasm-bindgen-cli\n```\n\nOr, you can download it from the\n[release page](https://github.com/wasm-bindgen/wasm-bindgen/releases).\n\nIf you have [`cargo-binstall`](https://crates.io/crates/cargo-binstall) installed,\nthen you can install the pre-built artifacts by running:\n\n```\ncargo binstall wasm-bindgen-cli\n```\n\n## Example\n\nImport JavaScript things into Rust and export Rust things to JavaScript.\n\n```rust\nuse wasm_bindgen::prelude::*;\n\n// Import the `window.alert` function from the Web.\n#[wasm_bindgen]\nextern \"C\" {\n    fn alert(s: \u0026str);\n}\n\n// Export a `greet` function from Rust to JavaScript, that alerts a\n// hello message.\n#[wasm_bindgen]\npub fn greet(name: \u0026str) {\n    alert(\u0026format!(\"Hello, {}!\", name));\n}\n```\n\nUse exported Rust things from JavaScript with ECMAScript modules!\n\n```js\nimport { greet } from \"./hello_world\";\n\ngreet(\"World!\");\n```\n\n## Features\n\n* **Lightweight.** Only pay for what you use. `wasm-bindgen` only generates\n  bindings and glue for the JavaScript imports you actually use and Rust\n  functionality that you export. For example, importing and using the\n  `document.querySelector` method doesn't cause `Node.prototype.appendChild` or\n  `window.alert` to be included in the bindings as well.\n\n* **ECMAScript modules.** Just import WebAssembly modules the same way you would\n  import JavaScript modules. Future compatible with [WebAssembly modules and\n  ECMAScript modules integration][wasm-es-modules].\n\n* **Designed with the [\"Web IDL bindings\" proposal][webidl-bindings] in mind.**\n  Eventually, there won't be any JavaScript shims between Rust-generated wasm\n  functions and native DOM methods. Because the Wasm functions are statically\n  type checked, some of those native methods' dynamic type checks should become\n  unnecessary, promising to unlock even-faster-than-JavaScript DOM access.\n\n[wasm-es-modules]: https://github.com/WebAssembly/esm-integration\n[webidl-bindings]: https://github.com/WebAssembly/proposals/issues/8\n\n## Guide\n\n[**📚 Read the `wasm-bindgen` guide here! 📚**](https://wasm-bindgen.github.io/wasm-bindgen/)\n\n## API Docs\n\n- [wasm-bindgen](https://docs.rs/wasm-bindgen)\n- [js-sys](https://docs.rs/js-sys)\n- [web-sys](https://docs.rs/web-sys)\n- [wasm-bindgen-futures](https://docs.rs/wasm-bindgen-futures)\n\n## MSRV Policy\n\n* Libraries that are released on [crates.io](https://crates.io) have a MSRV of v1.71.\n* CLI tools and their corresponding support libraries have a MSRV of v1.82.\n\nThe project aims to maintain a 2-year MSRV policy for libraries (meaning we support Rust versions released within the last 2 years), but with a shorter MSRV policy for the CLI. Changes to the MSRV may be made in patch versions, and will be logged in the CHANGELOG and MSRV history below.\n\n### MSRV History\n\n| Version | Library MSRV | CLI MSRV | Date       |\n|---------|--------------|----------|------------|\n| 0.2.106 | 1.71         | 1.82     | 2025-11-xx |\n| 0.2.103 | 1.57         | 1.82     | 2025-09-17 |\n| 0.2.93  | 1.57         | 1.76     | 2024-08-13 |\n\n## License\n\nThis project is licensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\n**[See the \"Contributing\" section of the guide for information on hacking on `wasm-bindgen`!][contributing]**\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n\n[contributing]: https://wasm-bindgen.github.io/wasm-bindgen/contributing/index.html\n","funding_links":["https://github.com/sponsors/daxpedda"],"categories":["Rust","Development tools"],"sub_categories":["FFI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-bindgen%2Fwasm-bindgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasm-bindgen%2Fwasm-bindgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasm-bindgen%2Fwasm-bindgen/lists"}