wasmtime-bin 36.0.9__py3-none-win_amd64.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,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: wasmtime-bin
3
+ Version: 36.0.9
4
+ Summary: Wasmtime CLI repackaged as Python wheels
5
+ Home-page: https://github.com/bytecodealliance/wasmtime
6
+ License: Apache-2.0 WITH LLVM-exception
7
+ Requires-Python: >=3.9
8
+ Description-Content-Type: text/markdown
9
+
10
+ # wasmtime-bin
11
+
12
+ [Wasmtime](https://github.com/bytecodealliance/wasmtime) CLI repackaged as Python wheels for easy installation via tools like `uv`.
13
+
14
+ Wasmtime is a fast and secure runtime for WebAssembly.
15
+
16
+ ## Install
17
+
18
+ ```sh
19
+ uv tool install wasmtime-bin
20
+ wasmtime --version
21
+ ```
22
+
23
+ ## Supported Platforms
24
+
25
+ | Platform | Wheel tag |
26
+ |----------|-----------|
27
+ | Linux x64 | `manylinux_2_17_x86_64` |
28
+ | Linux ARM64 | `manylinux_2_17_aarch64` |
29
+ | Linux x64 (musl) | `musllinux_1_1_x86_64` |
30
+ | Linux ARM64 (musl) | `musllinux_1_1_aarch64` |
31
+ | macOS x64 | `macosx_10_9_x86_64` |
32
+ | macOS ARM64 | `macosx_11_0_arm64` |
33
+ | Windows x64 | `win_amd64` |
34
+ | Windows ARM64 | `win_arm64` |
35
+
36
+ ## How It Works
37
+
38
+ This package downloads the official wasmtime release archives from
39
+ [bytecodealliance/wasmtime](https://github.com/bytecodealliance/wasmtime/releases)
40
+ and repackages each `.tar.xz` / `.zip` as a platform-specific Python wheel.
41
+
42
+ A thin Python entry point (`console_scripts`) delegates to the native binary,
43
+ so `wasmtime` is available on `PATH` after install.
44
+
45
+ ## Development
46
+
47
+ python, uv, & just are needed. Here is a quick setup example on Linux:
48
+
49
+ ```bash
50
+ tdnf install -y python3 python3-pip
51
+ python3 -m pip install uv
52
+ echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
53
+ uv tool install rust-just
54
+ ```
55
+
56
+ ## License
57
+
58
+ This package redistributes wasmtime under its
59
+ [Apache-2.0 WITH LLVM-exception](https://github.com/bytecodealliance/wasmtime/blob/main/LICENSE) license.
@@ -0,0 +1,9 @@
1
+ wasmtime_cli/__init__.py,sha256=A3l0-WTg4TQkPd4KaWWkzpFRx1dFMXk2SaZUvdB0oXo,878
2
+ wasmtime_cli/LICENSE,sha256=JohyuYFvkP2OhdtaKNM_gVDruN0BZlP7Oe8flPJoa8U,12243
3
+ wasmtime_cli/README.md,sha256=AiUzBbRXcYyWJ_gCvuSIrUzIqJUoZIpHdItlTkWqyYg,7796
4
+ wasmtime_cli/wasmtime-min.exe,sha256=Swb7N2FwBdPecJtTze04m405zdd7SKa4b66q72nwlUQ,2029568
5
+ wasmtime_cli/wasmtime.exe,sha256=NM3-ejPAlf6us6YtDIG81yE03XoSw60HHN8gdV--4As,35338752
6
+ wasmtime_bin-36.0.9.dist-info/METADATA,sha256=ZKTDXQmQywKj-qC8hQfUNofs3y9kAprRMXbDmIDXliA,1738
7
+ wasmtime_bin-36.0.9.dist-info/WHEEL,sha256=Ica8fhmbe52XbO1cyRYPNSx0KW5onuxFfHy_a18hkCU,93
8
+ wasmtime_bin-36.0.9.dist-info/entry_points.txt,sha256=D7P_SFMJYwhOLtckjPt2Od4-vRY2g0rhKMFMJaRA4rs,47
9
+ wasmtime_bin-36.0.9.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: build_wheels.py
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ wasmtime = wasmtime_cli:main
wasmtime_cli/LICENSE ADDED
@@ -0,0 +1,220 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+
205
+ --- LLVM Exceptions to the Apache 2.0 License ----
206
+
207
+ As an exception, if, as a result of your compiling your source code, portions
208
+ of this Software are embedded into an Object form of such source code, you
209
+ may redistribute such embedded portions in such Object form without complying
210
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
211
+
212
+ In addition, if you combine or link compiled forms of this Software with
213
+ software that is licensed under the GPLv2 ("Combined Software") and if a
214
+ court of competent jurisdiction determines that the patent provision (Section
215
+ 3), the indemnity provision (Section 9) or other Section of the License
216
+ conflicts with the conditions of the GPLv2, you may retroactively and
217
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
218
+ the License, but only in their entirety and only with respect to the Combined
219
+ Software.
220
+
wasmtime_cli/README.md ADDED
@@ -0,0 +1,184 @@
1
+ <div align="center">
2
+ <h1><code>wasmtime</code></h1>
3
+
4
+ <p>
5
+ <strong>A standalone runtime for
6
+ <a href="https://webassembly.org/">WebAssembly</a></strong>
7
+ </p>
8
+
9
+ <strong>A <a href="https://bytecodealliance.org/">Bytecode Alliance</a> project</strong>
10
+
11
+ <p>
12
+ <a href="https://github.com/bytecodealliance/wasmtime/actions?query=workflow%3ACI"><img src="https://github.com/bytecodealliance/wasmtime/workflows/CI/badge.svg" alt="build status" /></a>
13
+ <a href="https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime"><img src="https://img.shields.io/badge/zulip-join_chat-brightgreen.svg" alt="zulip chat" /></a>
14
+ <img src="https://img.shields.io/badge/rustc-stable+-green.svg" alt="supported rustc stable" />
15
+ <a href="https://docs.rs/wasmtime"><img src="https://docs.rs/wasmtime/badge.svg" alt="Documentation Status" /></a>
16
+ </p>
17
+
18
+ <h3>
19
+ <a href="https://bytecodealliance.github.io/wasmtime/">Guide</a>
20
+ <span> | </span>
21
+ <a href="https://bytecodealliance.github.io/wasmtime/contributing.html">Contributing</a>
22
+ <span> | </span>
23
+ <a href="https://wasmtime.dev/">Website</a>
24
+ <span> | </span>
25
+ <a href="https://bytecodealliance.zulipchat.com/#narrow/stream/217126-wasmtime">Chat</a>
26
+ </h3>
27
+ </div>
28
+
29
+ ## Installation
30
+
31
+ The Wasmtime CLI can be installed on Linux and macOS (locally) with a small install
32
+ script:
33
+
34
+ ```console
35
+ curl https://wasmtime.dev/install.sh -sSf | bash
36
+ ```
37
+ This script installs into `$WASMTIME_HOME` (defaults to `$HOME/.wasmtime`), and executable is placed in `$WASMTIME_HOME/bin`.
38
+
39
+ Windows or otherwise interested users can download installers and
40
+ binaries directly from the [GitHub
41
+ Releases](https://github.com/bytecodealliance/wasmtime/releases) page.
42
+
43
+ For additional installation options, refer to the [online book CLI installation page](https://docs.wasmtime.dev/cli-install.html).
44
+
45
+ Documentation on Wasmtime's currently supported versions can be found [in the
46
+ online book
47
+ documentation](https://docs.wasmtime.dev/stability-release.html#current-versions).
48
+
49
+ ## Example
50
+
51
+ If you've got the [Rust compiler
52
+ installed](https://www.rust-lang.org/tools/install) then you can take some Rust
53
+ source code:
54
+
55
+ ```rust
56
+ fn main() {
57
+ println!("Hello, world!");
58
+ }
59
+ ```
60
+
61
+ and compile it into a WebAssembly component with:
62
+
63
+ ```console
64
+ rustup target add wasm32-wasip2
65
+ rustc hello.rs --target wasm32-wasip2
66
+ ```
67
+
68
+ Once compiled, you can run your component:
69
+
70
+ ```console
71
+ wasmtime hello.wasm
72
+ ```
73
+
74
+ You should see the following output:
75
+
76
+ ```text
77
+ Hello, world!
78
+ ```
79
+
80
+ (Note: make sure you installed Rust using the [`rustup`][rustup] method in the official
81
+ instructions above, and do not have a copy of the Rust toolchain installed on
82
+ your system in some other way as well (e.g. the system package manager). Otherwise, the `rustup target add...`
83
+ command may not install the target for the correct copy of Rust.)
84
+
85
+ [rustup]: https://rustup.rs
86
+
87
+ ## Features
88
+
89
+ * **Fast**. Wasmtime is built on the optimizing [Cranelift] code generator to
90
+ quickly generate high-quality machine code either at runtime or
91
+ ahead-of-time. Wasmtime is optimized for efficient instantiation, low-overhead
92
+ calls between the embedder and wasm, and scalability of concurrent instances.
93
+
94
+ * **[Secure]**. Wasmtime's development is strongly focused on correctness and
95
+ security. Building on top of Rust's runtime safety guarantees, each Wasmtime
96
+ feature goes through careful review and consideration via an [RFC
97
+ process]. Once features are designed and implemented, they undergo 24/7
98
+ fuzzing donated by [Google's OSS Fuzz]. As features stabilize they become part
99
+ of a [release][release policy], and when things go wrong we have a
100
+ well-defined [security policy] in place to quickly mitigate and patch any
101
+ issues. We follow best practices for defense-in-depth and integrate
102
+ protections and mitigations for issues like Spectre. Finally, we're working to
103
+ push the state-of-the-art by collaborating with academic researchers to
104
+ formally verify critical parts of Wasmtime and Cranelift.
105
+
106
+ * **[Configurable]**. Wasmtime uses sensible defaults, but can also be
107
+ configured to provide more fine-grained control over things like CPU and
108
+ memory consumption. Whether you want to run Wasmtime in a tiny environment or
109
+ on massive servers with many concurrent instances, we've got you covered.
110
+
111
+ * **[WASI]**. Wasmtime supports a rich set of APIs for interacting with the host
112
+ environment through the [WASI standard](https://wasi.dev).
113
+
114
+ * **[Standards Compliant]**. Wasmtime passes the [official WebAssembly test
115
+ suite](https://github.com/WebAssembly/testsuite), implements the [official C
116
+ API of wasm](https://github.com/WebAssembly/wasm-c-api), and implements
117
+ [future proposals to WebAssembly](https://github.com/WebAssembly/proposals) as
118
+ well. Wasmtime developers are intimately engaged with the WebAssembly
119
+ standards process all along the way too.
120
+
121
+ [Wasmtime]: https://github.com/bytecodealliance/wasmtime
122
+ [Cranelift]: https://cranelift.dev/
123
+ [Google's OSS Fuzz]: https://google.github.io/oss-fuzz/
124
+ [security policy]: https://bytecodealliance.org/security
125
+ [RFC process]: https://github.com/bytecodealliance/rfcs
126
+ [release policy]: https://docs.wasmtime.dev/stability-release.html
127
+ [Secure]: https://docs.wasmtime.dev/security.html
128
+ [Configurable]: https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html
129
+ [WASI]: https://docs.rs/wasmtime-wasi/latest/wasmtime_wasi/
130
+ [Standards Compliant]: https://docs.wasmtime.dev/stability-tiers.html
131
+
132
+ ## Language Support
133
+
134
+ You can use Wasmtime from a variety of different languages through embeddings of
135
+ the implementation.
136
+
137
+ Languages supported by the Bytecode Alliance:
138
+
139
+ * **[Rust]** - the [`wasmtime` crate]
140
+ * **[C]** - the [`wasm.h`, `wasi.h`, and `wasmtime.h` headers][c-headers], [CMake](crates/c-api/CMakeLists.txt) or [`wasmtime` Conan package]
141
+ * **C++** - the [`wasmtime.hh` header][c-headers] or the [`wasmtime-cpp` Conan package]
142
+ * **[Python]** - the [`wasmtime` PyPI package]
143
+ * **[.NET]** - the [`Wasmtime` NuGet package]
144
+ * **[Go]** - the [`wasmtime-go` repository]
145
+ * **[Ruby]** - the [`wasmtime` gem]
146
+
147
+ Languages supported by the community:
148
+
149
+ * **[Elixir]** - the [`wasmex` hex package]
150
+ * **Perl** - the [`Wasm` Perl package's `Wasm::Wasmtime`]
151
+
152
+ [Rust]: https://bytecodealliance.github.io/wasmtime/lang-rust.html
153
+ [C]: https://bytecodealliance.github.io/wasmtime/lang-c.html
154
+ [`wasmtime` crate]: https://crates.io/crates/wasmtime
155
+ [c-headers]: https://bytecodealliance.github.io/wasmtime/c-api/
156
+ [Python]: https://bytecodealliance.github.io/wasmtime/lang-python.html
157
+ [`wasmtime` PyPI package]: https://pypi.org/project/wasmtime/
158
+ [.NET]: https://bytecodealliance.github.io/wasmtime/lang-dotnet.html
159
+ [`Wasmtime` NuGet package]: https://www.nuget.org/packages/Wasmtime
160
+ [Go]: https://bytecodealliance.github.io/wasmtime/lang-go.html
161
+ [`wasmtime-go` repository]: https://pkg.go.dev/github.com/bytecodealliance/wasmtime-go
162
+ [`wasmtime` Conan package]: https://conan.io/center/wasmtime
163
+ [`wasmtime-cpp` Conan package]: https://conan.io/center/wasmtime-cpp
164
+ [Ruby]: https://bytecodealliance.github.io/wasmtime/lang-ruby.html
165
+ [`wasmtime` gem]: https://rubygems.org/gems/wasmtime
166
+ [Elixir]: https://docs.wasmtime.dev/lang-elixir.html
167
+ [`wasmex` hex package]: https://hex.pm/packages/wasmex
168
+ [`Wasm` Perl package's `Wasm::Wasmtime`]: https://metacpan.org/pod/Wasm::Wasmtime
169
+
170
+ ## Documentation
171
+
172
+ [📚 Read the Wasmtime guide here! 📚][guide]
173
+
174
+ The [wasmtime guide][guide] is the best starting point to learn about what
175
+ Wasmtime can do for you or help answer your questions about Wasmtime. If you're
176
+ curious in contributing to Wasmtime, [it can also help you do
177
+ that][contributing]!
178
+
179
+ [contributing]: https://bytecodealliance.github.io/wasmtime/contributing.html
180
+ [guide]: https://bytecodealliance.github.io/wasmtime
181
+
182
+ ---
183
+
184
+ It's Wasmtime.
@@ -0,0 +1,36 @@
1
+ """Wasmtime CLI - a fast and secure runtime for WebAssembly."""
2
+
3
+ import os
4
+ import subprocess
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ try:
9
+ from importlib.metadata import version
10
+
11
+ __version__ = version("wasmtime-bin")
12
+ except Exception:
13
+ __version__ = "0.0.0"
14
+
15
+ _BIN = "wasmtime.exe" if sys.platform == "win32" else "wasmtime"
16
+
17
+
18
+ def _binary_path() -> Path:
19
+ """Return the path to the wasmtime binary."""
20
+ return Path(__file__).parent / _BIN
21
+
22
+
23
+ def main() -> None:
24
+ """Entry point that delegates to the native binary."""
25
+ binary = _binary_path()
26
+ if not binary.exists():
27
+ print(
28
+ f"wasmtime binary not found at {binary}",
29
+ file=sys.stderr,
30
+ )
31
+ sys.exit(1)
32
+ args = [str(binary), *sys.argv[1:]]
33
+ if sys.platform != "win32":
34
+ os.execv(args[0], args)
35
+ else:
36
+ raise SystemExit(subprocess.call(args))
Binary file
Binary file