GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.wasmtime.dev — Using the Wasmtime API - Wasmtime Using the Wasmtime APIWasmtime can be used as a library to embed WebAssembly execution support within applications. Wasmtime is written in Rust, but bindings are available through a C API for a number of other languages too. This chapter has a number of examples which come from the Wasmtime repository itself and showcase the Rust, C, and C++ embedding APIs. Officially supported bindingsThe following languages are all developed in the Wasmtime repository itself and have tests/documentation in the main repository itself. RustWasmtime is itself written in Rust and is available as the CWasmtime provides a C API through Documentation for the C API can be found at docs.wasmtime.dev/c-api. Documentation on how to build the C API can be found in the README of the C API. Building the C API uses CMake to orchestrate the build and Cargo under the hood to build the Rust code. The C API can also be installed through C++Wasmtime supports C++ as a header-based library layered on top of the C API. The
C++ API header use the BashWasmtime is available in Bash through the External bindings to WasmtimeThe following language bindings are all developed outside of the Wasmtime repository. Consequently they are not officially supported and may have varying levels of support and activity. Note that many of these bindings are in the bytecodealliance GitHub organization but are still not tested/developed in-sync with the main repository. PythonPython bindings for Wasmtime are developed in the wasmtime-py repository. These bindings are built on the C API and developed externally from the main Wasmtime repository so updates can lag behind the main repository sometimes in terms of release schedule and features. Python bindings are published to the
GoGo bindings for Wasmtime are developed in the wasmtime-go repository. These bindings are built on the C API and developed externally from the main Wasmtime repository so updates can lag behind the main repository sometimes in terms of release schedule and features. Documentation for the Go API bindings can be found on pkg.go.dev, and be sure to use the version-picker to pick the latest major version which tracks Wasmtime's own major versions. .NETThe Wasmtime NuGet package can be used to programmatically interact with WebAssembly modules and requires .NET Core SDK 3.0 SDK or later installed as well. The .NET embedding of Wasmtime repository contains the source code for the Wasmtime NuGet package and the repository also has more examples as well. RubyWasmtime is available on RubyGems and can be used programmatically to interact with Wasm modules. To learn more, check out the more advanced examples and the API documentation. If you have any questions, do not hesitate to open an issue on the GitHub repository. ElixirWasmtime is available on Hex and can be used programmatically to interact with Wasm modules. To learn more, check out an another example and the API documentation. If you have any questions, do not hesitate to open an issue on the GitHub repository. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |