wasmerio/wasmer
GitHub: wasmerio/wasmer
Wasmer 是一个基于 WebAssembly 的安全、轻量运行时,解决在多平台以沙箱方式运行为任意位置应用的问题。
Stars: 20606 | Forks: 951
Wasmer 是一个 _极速_ 且 _安全_ 的 [**WebAssembly**](https://webassembly.org) 运行时,能够让
_轻量级容器_ 在任何地方运行:从 _桌面_ 到 _云端_、_边缘_ 以及你的浏览器。
- **默认安全**。除非明确启用,否则无法访问文件、网络或环境变量。
- **可插拔**。开箱即用支持 [**WASIX**](https://wasix.org/)、[WASI](https://github.com/WebAssembly/WASI)。
- **极速运行**。以接近原生的速度运行 WebAssembly。
- **随处嵌入** [通过 Wasmer SDKs](https://github.com/wasmerio/wasmer/#wasmer-sdk)
### 安装 Wasmer
```
curl https://get.wasmer.io -sSfL | sh
```
其他安装选项(Powershell、Brew、Cargo、…)
_Wasmer 可以通过多种包管理器安装。请选择最适合你环境的方案:_
* Powershell(Windows)
iwr https://win.wasmer.io -useb | iex
- Homebrew(macOS、Linux)
brew install wasmer
- Scoop(Windows)
scoop install wasmer
- Chocolatey(Windows)
choco install wasmer
- Cargo binstall
cargo binstall wasmer-cli
- Cargo
_Note: 所有可用
功能在 [`wasmer-cli`
crate 文档](https://github.com/wasmerio/wasmer/tree/main/lib/cli/README.md)_
cargo install wasmer-cli
### 快速开始
你可以从运行开始:
[Cowsay](https://wasmer.io/syrusakbary/cowsay):
```
$ wasmer run cowsay "hello world"
_____________
< hello world >
-------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```
#### 接下来你可以做以下操作:
- [运行一个包](https://docs.wasmer.io/runtime/get-started)
- [发布一个包](https://docs.wasmer.io/registry/get-started)
- [部署你的网站](https://docs.wasmer.io/edge/get-started)
- [阅读更多 Wasmer 文档](https://wasmer.io/posts)
## Wasmer SDK
你可以将 Wasmer 运行时 **嵌入到多种语言** 中,使用 Wasmer SDK:
| | 语言 | 包 | 文档 |
| ---------------- | -------------------------------- | --------------------------------- | ---------------------- |
| ![Rust logo] | [**Rust**][Rust integration] | [`wasmer` Rust crate] | [Learn][rust docs] |
| ![C logo] | [**C**][C integration] | [`wasm.h` header] | [Learn][c docs] |
| ![C++ logo] | [**C++**][C integration] | [`wasm.hh` header] | [Learn][c docs] |
| ![C# logo] | [**C#**][C# integration] | [`WasmerSharp` NuGet package] | [Learn][c# docs] |
| ![D logo] | [**D**][D integration] | [`wasmer` Dub package] | [Learn][d docs] |
| ![Zig logo] | [**Zig**][Zig integration] | [`wasmer` Zig package] | [Learn][zig docs] |
| ![Python logo] | [**Python**][Python integration] | [`wasmer` PyPI package] | [Learn][python docs] |
| ![JS logo] | [**Javascript**][JS integration] | [`@wasmerio` NPM packages] | [Learn][js docs] |
| ![Go logo] | [**Go**][Go integration] | [`wasmer` Go package] | [Learn][go docs] |
| ![PHP logo] | [**PHP**][PHP integration] | [`wasm` PECL package] | [Learn][php docs] |
| ![Ruby logo] | [**Ruby**][Ruby integration] | [`wasmer` Ruby Gem] | [Learn][ruby docs] |
| ![Java logo] | [**Java**][Java integration] | [`wasmer/wasmer-jni` Bintray package] | [Learn][java docs] |
| ![R logo] | [**R**][R integration] | _no published package_ | [Learn][r docs] |
| ![R logo] | [**R**][R integration_1] | _no published package_ | [Learn][r docs_1] |
| ![Postgres logo] | [**Postgres**][Postgres integration] | _no published package_ | [Learn][postgres docs] |
| ![Swift logo] | [**Swift**][Swift integration] | _no published package_ | |
| ![Dart logo] | [**Dart**][Dart integration] | [`wasm` pub package] | |
| ![Crystal logo] | [**Crystal**][Crystal integration] | _no published package_ | [Learn][crystal docs] |
| ![Lisp logo] | [**Lisp**][Lisp integration] | _no published package_ | |
| ![Julia logo] | [**Julia**][Julia integration] | _no published package_ | |
| ![VLang logo] | [**V**][vlang integration] | _no published package_ | |
| ![Ocaml logo] | [**OCaml**][OCaml integration] | [`wasmer` OCaml package] | |
## 开发
我们有不同的指南帮助你开发 Wasmer:
* [从源码构建 Wasmer](./docs/BUILD.md)
* [测试](./docs/TEST.md)
* [安全公告](./docs/SECURITY.md)
## 社区
Wasmer 拥有一个由开发者和贡献者组成的精彩社区。欢迎加入我们!👋
- [Wasmer 社区 Discord](https://discord.gg/rWkMNStrEW)
- [Wasmer on Twitter](https://twitter.com/wasmerio)
- [Wasmer on LinkedIn](https://www.linkedin.com/company/wasmerio)
标签:AI工具, curl 安装, WASI, WASIX, Wasmer, WebAssembly, WebAssembly 引擎, WebAssembly 运行时, 云端容器, 可嵌入运行时, 可视化界面, 安全容器, 安全运行时, 安全默认, 容器, 开源运行时, 快速容器, 插件化运行时, 无文件执行, 无网络执行, 桌面容器, 沙箱运行时, 跨平台容器, 轻量级容器, 边缘计算容器, 通知系统, 高性能计算