From 6ecee15efc820a23bb8a47b5ff4111037ec76bc7 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 10 Aug 2026 14:30:45 +0200 Subject: docs: update architecture, docs Signed-off-by: Henry --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 305f61e..3d3bc4c 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ## Why `tinywasm`? -- **Tiny**: Small by design, without significantly compromising performance or functionality. +- **Tiny**: Small by design, while still passing the full WebAssembly 3.0 core testsuite. - **Portable**: Runs anywhere Rust can target, supports `no_std`, has minimal dependencies, and can itself compile to WebAssembly. - **Safe**: Written in safe Rust, with optional `unsafe` limited to the `simd-x86` feature. Its sandbox is designed to prevent untrusted Wasm from accessing host memory or escaping the runtime. @@ -42,6 +42,10 @@ assert_eq!(result, 3); See the [examples](./examples) directory and [documentation](https://docs.rs/tinywasm) for more information. +## Precompiled Modules + +TinyWasm modules can be compiled to the internal `twasm` bytecode format, which stores the optimized instruction representation for faster loading and reuse. + ## Cargo Features - **`std`:** Enables `std` and parsing from files and streams. Enabled by default. @@ -61,12 +65,6 @@ Use `Engine` and `engine::Config` when you need non-default runtime settings suc [^libm]: [rust-lang/rust#137578](https://github.com/rust-lang/rust/issues/137578) — tracking issue for floating-point math support in `no_std`. -## Current Status - -`tinywasm` passes the WebAssembly MVP and WebAssembly 2.0 core testsuites and supports the [Lime1](https://github.com/WebAssembly/tool-conventions/blob/main/Lime.md#lime1) interoperability target. WebAssembly 3.0 support is still in progress, and some newer proposal suites are tracked in-repo as experimental coverage rather than release guarantees; see [Supported Proposals](#supported-proposals) for details. - -TinyWasm also has its own internal bytecode format, `twasm`. WebAssembly modules can be compiled to `twasm`, which stores TinyWasm's optimized instruction representation for faster loading and reuse. - ## Safety TinyWasm only uses safe Rust by default. The optional `simd-x86` feature enables x86-specific SIMD intrinsics and uses `unsafe` internally. WebAssembly input is validated by default through the `validate` feature. Disabling validation should not let Wasm access host memory or escape the sandbox, but malformed input may panic or otherwise crash the process, so only disable it for trusted input. -- cgit v1.3.1