{"id":13622500,"url":"https://github.com/explodingcamera/tinywasm","last_synced_at":"2025-05-16T03:05:36.279Z","repository":{"id":209712026,"uuid":"721699855","full_name":"explodingcamera/tinywasm","owner":"explodingcamera","description":"A tiny, interpreted WebAssembly Runtime written in Rust","archived":false,"fork":false,"pushed_at":"2025-04-26T15:43:25.000Z","size":1477,"stargazers_count":506,"open_issues_count":7,"forks_count":21,"subscribers_count":10,"default_branch":"next","last_synced_at":"2025-05-06T18:05:36.677Z","etag":null,"topics":["embedded","rust","webassembly","webassembly-runtime"],"latest_commit_sha":null,"homepage":"","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/explodingcamera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2023-11-21T15:40:48.000Z","updated_at":"2025-05-02T18:27:04.000Z","dependencies_parsed_at":"2023-11-28T20:25:24.795Z","dependency_job_id":"615f8ade-38a2-410d-80de-3251c762d039","html_url":"https://github.com/explodingcamera/tinywasm","commit_stats":null,"previous_names":["explodingcamera/tinywasm"],"tags_count":75,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Ftinywasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Ftinywasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Ftinywasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explodingcamera%2Ftinywasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explodingcamera","download_url":"https://codeload.github.com/explodingcamera/tinywasm/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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":["embedded","rust","webassembly","webassembly-runtime"],"created_at":"2024-08-01T21:01:20.138Z","updated_at":"2025-05-16T03:05:31.271Z","avatar_url":"https://github.com/explodingcamera.png","language":"Rust","funding_links":[],"categories":["Rust","embedded","rust"],"sub_categories":[],"readme":"\u003cdiv\u003e\n    \u003cdiv\u003e\n        \u003ca href=\"\"\u003e\u003cimg align=\"left\" src=\"https://raw.githubusercontent.com/explodingcamera/tinywasm/main/tinywasm.png\" width=\"100px\"\u003e\u003c/a\u003e\n    \u003c/div\u003e\n    \u003ch1\u003eTinyWasm\u003c/h1\u003e\n    A tiny WebAssembly Runtime written in safe Rust\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n[![docs.rs](https://img.shields.io/docsrs/tinywasm?logo=rust)](https://docs.rs/tinywasm) [![Crates.io](https://img.shields.io/crates/v/tinywasm.svg?logo=rust)](https://crates.io/crates/tinywasm) [![Crates.io](https://img.shields.io/crates/l/tinywasm.svg)](./LICENSE-APACHE)\n\n## Why TinyWasm?\n\n- **Tiny**: TinyWasm is designed to be as small as possible without significantly compromising performance or functionality (\u003c 4000 LLOC).\n- **Portable**: TinyWasm runs on any platform that Rust can target, including `no_std`, with minimal external dependencies.\n- **Safe**: No unsafe code is used in the runtime (`rkyv` which uses unsafe code can be used for serialization, but is optional).\n\n## Status\n\nTinyWasm passes all WebAssembly MVP tests from the [WebAssembly core testsuite](https://github.com/WebAssembly/testsuite) and is able to run most WebAssembly programs. Additionally, the current 2.0 Draft is mostly supported, with the exception of Fixed-Width SIMD and Memory64/Multiple Memories. See the [Supported Proposals](#supported-proposals) section for more information.\n\n## Supported Proposals\n\n**Legend**\\\n🌑 -- not available\\\n🚧 -- in development / partialy supported\\\n🟢 -- fully supported\n\n| Proposal                                                                                                                   | Status | TinyWasm Version |\n| -------------------------------------------------------------------------------------------------------------------------- | ------ | ---------------- |\n| [**Mutable Globals**](https://github.com/WebAssembly/mutable-global/blob/master/proposals/mutable-global/Overview.md)      | 🟢     | 0.2.0            |\n| [**Non-trapping float-to-int Conversion**](https://github.com/WebAssembly/nontrapping-float-to-int-conversions)            | 🟢     | 0.2.0            |\n| [**Sign-extension operators**](https://github.com/WebAssembly/sign-extension-ops)                                          | 🟢     | 0.2.0            |\n| [**Multi-value**](https://github.com/WebAssembly/spec/blob/master/proposals/multi-value/Overview.md)                       | 🟢     | 0.2.0            |\n| [**Bulk Memory Operations**](https://github.com/WebAssembly/spec/blob/master/proposals/bulk-memory-operations/Overview.md) | 🟢     | 0.4.0            |\n| [**Reference Types**](https://github.com/WebAssembly/reference-types/blob/master/proposals/reference-types/Overview.md)    | 🟢     | 0.7.0            |\n| [**Multiple Memories**](https://github.com/WebAssembly/multi-memory/blob/master/proposals/multi-memory/Overview.md)        | 🟢     | 0.8.0            |\n| [**Memory64**](https://github.com/WebAssembly/memory64/blob/master/proposals/memory64/Overview.md)                         | 🚧     | N/A              |\n| [**Fixed-Width SIMD**](https://github.com/webassembly/simd)                                                                | 🌑     | N/A              |\n\n## Usage\n\nSee the [examples](./examples) directory and [documentation](https://docs.rs/tinywasm) for more information on how to use TinyWasm.\nFor testing purposes, you can also use the `tinywasm-cli` tool:\n\n```sh\n$ cargo install tinywasm-cli\n$ tinywasm-cli --help\n```\n\n## Feature Flags\n\n- **`std`**\\\n  Enables the use of `std` and `std::io` for parsing from files and streams. This is enabled by default.\n- **`logging`**\\\n  Enables logging using the `log` crate. This is enabled by default.\n- **`parser`**\\\n  Enables the `tinywasm-parser` crate. This is enabled by default.\n- **`archive`**\\\n  Enables pre-parsing of archives. This is enabled by default.\n\nWith all these features disabled, TinyWasm only depends on `core`, `alloc` ,and `libm` and can be used in `no_std` environments.\nSince `libm` is not as performant as the compiler's math intrinsics, it is recommended to use the `std` feature if possible (at least [for now](https://github.com/rust-lang/rfcs/issues/2505)), especially on wasm32 targets.\n\n## Inspiration\n\nBig thanks to the authors of the following projects, which have inspired and influenced TinyWasm:\n\n- [wasmi](https://github.com/wasmi-labs/wasmi) - an efficient and lightweight WebAssembly interpreter that also runs on `no_std` environments\n- [wasm3](https://github.com/wasm3/wasm3) - a high performance WebAssembly interpreter written in C\n- [wazero](https://wazero.io/) - a zero-dependency WebAssembly interpreter written in go\n- [wain](https://github.com/rhysd/wain) - a zero-dependency WebAssembly interpreter written in Rust\n\nI encourage you to check these projects out if you're looking for more mature and feature-complete WebAssembly Runtimes.\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](./LICENSE-APACHE) or [MIT license](./LICENSE-MIT) at your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in TinyWasm by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n**Note:** The GitHub repository contains a Submodule (`crates/tinywasm-parser/data`) which is licensed only under the [Apache License, Version 2.0](https://github.com/WebAssembly/spec/blob/main/test/LICENSE). This data is generated from the [WebAssembly Specification](https://github.com/WebAssembly/spec/tree/main/test) and is only used for testing purposes and not included in the final binary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Ftinywasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplodingcamera%2Ftinywasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplodingcamera%2Ftinywasm/lists"}