Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

License

NotificationsYou must be signed in to change notification settings

bytecodealliance/wasmtime

Installation

The Wasmtime CLI can be installed on Linux and macOS (locally) with a small installscript:

curl https://wasmtime.dev/install.sh -sSf | bash

This script installs into$WASMTIME_HOME (defaults to$HOME/.wasmtime), and executable is placed in$WASMTIME_HOME/bin.

Windows or otherwise interested users can download installers andbinaries directly from theGitHubReleases page.

Documentation on Wasmtime's currently supported versions can be foundin theonline bookdocumentation.

Example

If you've got theRust compilerinstalled then you can take some Rustsource code:

fnmain(){println!("Hello, world!");}

and compile it into a WebAssembly component with:

rustup target add wasm32-wasip2rustc hello.rs --target wasm32-wasip2

Once compiled, you can can run your component:

wasmtime hello.wasm

You should see the following output:

Hello, world!

(Note: make sure you installed Rust using therustup method in the officialinstructions above, and do not have a copy of the Rust toolchain installed onyour system in some other way as well (e.g. the system package manager). Otherwise, therustup target add...command may not install the target for the correct copy of Rust.)

Features

  • Fast. Wasmtime is built on the optimizingCranelift code generator toquickly generate high-quality machine code either at runtime orahead-of-time. Wasmtime is optimized for efficient instantiation, low-overheadcalls between the embedder and wasm, and scalability of concurrent instances.

  • Secure. Wasmtime's development is strongly focused on correctness andsecurity. Building on top of Rust's runtime safety guarantees, each Wasmtimefeature goes through careful review and consideration via anRFCprocess. Once features are designed and implemented, they undergo 24/7fuzzing donated byGoogle's OSS Fuzz. As features stabilize they become partof arelease, and when things go wrong we have awell-definedsecurity policy in place to quickly mitigate and patch anyissues. We follow best practices for defense-in-depth and integrateprotections and mitigations for issues like Spectre. Finally, we're working topush the state-of-the-art by collaborating with academic researchers toformally verify critical parts of Wasmtime and Cranelift.

  • Configurable. Wasmtime uses sensible defaults, but can also beconfigured to provide more fine-grained control over things like CPU andmemory consumption. Whether you want to run Wasmtime in a tiny environment oron massive servers with many concurrent instances, we've got you covered.

  • WASI. Wasmtime supports a rich set of APIs for interacting with the hostenvironment through theWASI standard.

  • Standards Compliant. Wasmtime passes theofficial WebAssembly testsuite, implements theofficial CAPI of wasm, and implementsfuture proposals to WebAssembly aswell. Wasmtime developers are intimately engaged with the WebAssemblystandards process all along the way too.

Language Support

You can use Wasmtime from a variety of different languages through embeddings ofthe implementation.

Languages supported by the Bytecode Alliance:

Languages supported by the community:

Documentation

📚 Read the Wasmtime guide here! 📚

Thewasmtime guide is the best starting point to learn about whatWasmtime can do for you or help answer your questions about Wasmtime. If you'recurious in contributing to Wasmtime,it can also help you dothat!


It's Wasmtime.


[8]ページ先頭

©2009-2025 Movatter.jp