Update wasm readme

Change-Id: Ib084c9ed28eabcdf55e1b43c6d6ef2af82e6fe76
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286931
Reviewed-by: Slava Egorov <vegorov@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Michael Thomsen <mit@google.com>
This commit is contained in:
Michael Thomsen 2023-03-07 21:22:38 +00:00 committed by Commit Queue
parent 4c7e87888d
commit 47b180ea89

View file

@ -1,3 +1,18 @@
# Compiling Dart to WebAssembly
WebAssembly (commonly abbreviated to Wasm) is a
_"binary instruction format for a stack-based virtual machine"_.
Although Wasm was originally designed for running native code on the web,
Wasm has since evolved into a general technology for running
compiled code across multiple platforms.
The Dart team is currently investigating support for compiling Dart to Wasm,
in conjunction with support [in Flutter](https://flutter.dev/wasm).
**Note:** This feature is under active development,
and is currently considered experimental.
The tracking issue is [#32894](https://github.com/dart-lang/sdk/issues/32894).
## Running dart2wasm
You don't need to build the Dart SDK to run dart2wasm, as long as you have a Dart SDK installed and have the [Dart SDK repository checked out](https://github.com/dart-lang/sdk/wiki/Building#getting-the-source). NB: the SDK must be checked out using depot tools and not just cloned from this repo.