wamrc-bin 3.0.0.dev4__py3-none-win_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wamrc-bin
|
|
3
|
+
Version: 3.0.0.dev4
|
|
4
|
+
Summary: WebAssembly Micro Runtime — AOT compiler
|
|
5
|
+
Home-page: https://github.com/cataggar/wamr
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# WAMR: WebAssembly Micro Runtime
|
|
11
|
+
|
|
12
|
+
A fork of [bytecodealliance/wasm-micro-runtime](https://github.com/bytecodealliance/wasm-micro-runtime) ported from C to Zig and maintained with AI assistance.
|
|
13
|
+
|
|
14
|
+
**100% spec conformance** — 20,901/20,901 tests passing.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
Pre-built binaries are published to [GitHub Releases](https://github.com/cataggar/wamr/releases) and [PyPI](https://pypi.org/project/wamr-bin/). See [installation details](https://github.com/cataggar/wamr/issues/69).
|
|
19
|
+
|
|
20
|
+
```console
|
|
21
|
+
$ dist install cataggar/wamr
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```console
|
|
25
|
+
$ uv tool install wamr-bin
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Tools
|
|
29
|
+
|
|
30
|
+
- **wamr**: decode and run a WebAssembly binary file using a stack-based interpreter
|
|
31
|
+
- **wamrc**: AOT compiler — compile a .wasm module to native code
|
|
32
|
+
|
|
33
|
+
## Building
|
|
34
|
+
|
|
35
|
+
Requires [Zig](https://ziglang.org/) 0.15.x. No other dependencies.
|
|
36
|
+
|
|
37
|
+
```console
|
|
38
|
+
$ git clone https://github.com/cataggar/wamr
|
|
39
|
+
$ cd wamr
|
|
40
|
+
$ zig build
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For release builds:
|
|
44
|
+
|
|
45
|
+
```console
|
|
46
|
+
$ zig build -Doptimize=ReleaseSafe
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Cross-compilation works out of the box:
|
|
50
|
+
|
|
51
|
+
```console
|
|
52
|
+
$ zig build -Dtarget=aarch64-linux -Doptimize=ReleaseSafe
|
|
53
|
+
$ zig build -Dtarget=aarch64-macos -Doptimize=ReleaseSafe
|
|
54
|
+
$ zig build -Dtarget=x86_64-windows -Doptimize=ReleaseSafe
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Running tests
|
|
58
|
+
|
|
59
|
+
Unit tests:
|
|
60
|
+
|
|
61
|
+
```console
|
|
62
|
+
$ zig build test
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Spec tests:
|
|
66
|
+
|
|
67
|
+
```console
|
|
68
|
+
$ zig build
|
|
69
|
+
$ ./zig-out/bin/spec-test-runner tests/spec-json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
[Apache 2.0](LICENSE)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
wamrc_cli/__init__.py,sha256=DGDNKu5Rl6Jojiu_8GmInrKEaZtNZ0eNTRzPupru33A,575
|
|
2
|
+
wamrc_cli/wamrc.exe,sha256=WWT5ANziT3WU2SNOrgVub01HSJ3sA85iCLwC8zKB-kg,351232
|
|
3
|
+
wamrc_bin-3.0.0.dev4.dist-info/METADATA,sha256=f8W7lD1ktdHmdk3BIs7By-fPuMrC8OBEVnQBEaaAh90,1635
|
|
4
|
+
wamrc_bin-3.0.0.dev4.dist-info/WHEEL,sha256=8N5YNJArDf1YeBvrygWTZSZF2cOrSkO4V9jV_qkGhSM,99
|
|
5
|
+
wamrc_bin-3.0.0.dev4.dist-info/entry_points.txt,sha256=3Ks7MOY-X3u4BvZ978tO8s3DyteEw2JKYA4H1bYKFyI,42
|
|
6
|
+
wamrc_bin-3.0.0.dev4.dist-info/RECORD,,
|
wamrc_cli/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""wamrc-bin — WebAssembly Micro Runtime AOT compiler."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import subprocess
|
|
5
|
+
import sys
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
_EXT = ".exe" if sys.platform == "win32" else ""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def wamrc() -> None:
|
|
12
|
+
"""Run the wamrc AOT compiler binary."""
|
|
13
|
+
binary = Path(__file__).parent / f"wamrc{_EXT}"
|
|
14
|
+
if not binary.exists():
|
|
15
|
+
print(f"wamrc binary not found at {binary}", file=sys.stderr)
|
|
16
|
+
sys.exit(1)
|
|
17
|
+
args = [str(binary), *sys.argv[1:]]
|
|
18
|
+
if sys.platform != "win32":
|
|
19
|
+
os.execv(args[0], args)
|
|
20
|
+
else:
|
|
21
|
+
raise SystemExit(subprocess.call(args))
|
wamrc_cli/wamrc.exe
ADDED
|
Binary file
|