-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat-memory-usage
- Loading branch information
Showing
9 changed files
with
639 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
<div align="center"> | ||
<a href="https://wasmer.io" target="_blank" rel="noopener noreferrer"> | ||
<img width="300" src="https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/logo.png" alt="Wasmer logo"> | ||
</a> | ||
|
||
<p> | ||
<a href="https://github.com/wasmerio/wasmer/actions?query=workflow%3Abuild"> | ||
<img src="https://github.com/wasmerio/wasmer/workflows/build/badge.svg?style=flat-square" alt="Build Status"> | ||
</a> | ||
<a href="https://github.com/wasmerio/wasmer/blob/master/LICENSE"> | ||
<img src="https://img.shields.io/github/license/wasmerio/wasmer.svg?style=flat-square" alt="License"> | ||
</a> | ||
<a href="https://slack.wasmer.io"> | ||
<img src="https://img.shields.io/static/v1?label=Slack&message=join%20chat&color=brighgreen&style=flat-square" alt="Slack channel"> | ||
</a> | ||
</p> | ||
|
||
<h3> | ||
<a href="https://wasmer.io/">网站</a> | ||
<span> • </span> | ||
<a href="https://docs.wasmer.io">文件资料</a> | ||
<span> • </span> | ||
<a href="https://slack.wasmer.io/">聊天</a> | ||
</h3> | ||
|
||
</div> | ||
|
||
<br /> | ||
|
||
[Wasmer](https://wasmer.io/) 使得能够基于 [WebAssembly](https://webassembly.org/),其可以在任何地方运行超轻型容器:从桌面到云和的IoT装置,并且也嵌入在 [*任何编程语言*](https://github.com/wasmerio/wasmer#language-integrations). | ||
|
||
> This readme is also available in: [🇬🇧 English-英文](https://github.com/wasmerio/wasmer/blob/master/README.md) • [🇪🇸 Español-西班牙语](https://github.com/wasmerio/wasmer/blob/master/docs/es/README.md) • [🇫🇷 Français-法语/法语](https://github.com/wasmerio/wasmer/blob/master/docs/es/README.md). | ||
## 特征 | ||
|
||
* **快速又安全**. Wasmer 在完全沙盒化的环境中以“接近本机”的速度运行 WebAssembly。 | ||
|
||
* **可插拔**. Wasmer支持不同的编译框架以最适合您的需求(LLVM,Cranelift ...). | ||
|
||
* **普遍的**. 您可以在任何*平台*(macOS,Linux和Windows)和*芯片组*中运行Wasmer. | ||
|
||
* **符合标准**. 运行时通过了[官方WebAssembly测试 | ||
套件](https://github.com/WebAssembly/testsuite) 支持[WASI](https://github.com/WebAssembly/WASI) 和[Emscripten](https://emscripten.org/). | ||
|
||
## 快速开始 | ||
|
||
Wasmer出厂时没有任何依赖关系. 您可以使用以下安装程序进行安装: | ||
|
||
```sh | ||
curl https://get.wasmer.io -sSfL | sh | ||
``` | ||
|
||
<details> | ||
<summary>使用Powershell (Windows)</summary> | ||
<p> | ||
|
||
```powershell | ||
iwr https://win.wasmer.io -useb | iex | ||
``` | ||
|
||
</p> | ||
</details> | ||
|
||
> 有关更多安装选项,请参见 [wasmer-install](https://github.com/wasmerio/wasmer-install): Homebrew, Scoop, Cargo... | ||
|
||
#### 执行WebAssembly文件 | ||
|
||
安装Wasmer之后,您应该已经准备好执行第一个WebAssemby文件! 🎉 | ||
|
||
您可以通过运行QuickJS开始: [qjs.wasm](https://registry-cdn.wapm.io/contents/_/quickjs/0.0.3/build/qjs.wasm) | ||
|
||
```bash | ||
$ wasmer qjs.wasm | ||
QuickJS - Type "\h" for help | ||
qjs > | ||
``` | ||
|
||
#### 接下来是您可以做的: | ||
|
||
- [在您的Rust应用程序中使用Wasmer](https://docs.wasmer.io/integrations/rust) | ||
- [在WAPM上发布Wasm程序包](https://docs.wasmer.io/ecosystem/wapm/publishing-your-package) | ||
- [阅读有关Wasmer的更多信息](https://medium.com/wasmer/) | ||
|
||
## 语言整合 | ||
|
||
📦 Wasmer运行时可以用作**以不同语言嵌入的库**,因此您可以在任何位置使用WebAssembly. | ||
|
||
| | 语言 | 箱 | 文件资料 | | ||
|-|-|-|-| | ||
| ![Rust logo] | [**Rust**][Rust integration] | [`wasmer` Rust crate] | [文件资料][rust docs] | ||
| ![C logo] | [**C/C++**][C integration] | [`wasmer.h` headers] | [文件资料][c docs] | | ||
| ![C# logo] | [**C#**][C# integration] | [`WasmerSharp` NuGet package] | [文件资料][c# docs] | | ||
| ![D logo] | [**D**][D integration] | [`wasmer` Dub package] | [文件资料][d docs] | | ||
| ![Python logo] | [**Python**][Python integration] | [`wasmer` PyPI package] | [文件资料][python docs] | | ||
| ![JS logo] | [**Javascript**][JS integration] | [`@wasmerio` NPM packages] | [文件资料][js docs] | | ||
| ![Go logo] | [**Go**][Go integration] | [`wasmer` Go package] | [文件资料][go docs] | | ||
| ![PHP logo] | [**PHP**][PHP integration] | [`wasm` PECL package] | [文件资料][php docs] | | ||
| ![Ruby logo] | [**Ruby**][Ruby integration] | [`wasmer` Ruby Gem] | [文件资料][ruby docs] | | ||
| ![Java logo] | [**Java**][Java integration] | [`wasmer/wasmer-jni` Bintray package] | [文件资料][java docs] | | ||
| ![Elixir logo] | [**Elixir**][Elixir integration] | [`wasmex` hex package] | [文件资料][elixir docs] | | ||
| ![R logo] | [**R**][R integration] | *没有已发布的软件包* | [文件资料][r docs] | | ||
| ![Postgres logo] | [**Postgres**][Postgres integration] | *没有已发布的软件包* | [文件资料][postgres docs] | | ||
| | [**Swift**][Swift integration] | *没有已发布的软件包* | | | ||
|
||
[👋 缺少语言?](https://github.com/wasmerio/wasmer/issues/new?assignees=&labels=%F0%9F%8E%89+enhancement&template=---feature-request.md&title=) | ||
|
||
[rust logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/rust.svg | ||
[rust integration]: https://github.com/wasmerio/wasmer/tree/master/lib/api | ||
[`wasmer` rust crate]: https://crates.io/crates/wasmer/ | ||
[rust docs]: https://wasmerio.github.io/wasmer/crates/wasmer_runtime | ||
|
||
[c logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/c.svg | ||
[c integration]: https://github.com/wasmerio/wasmer/tree/master/lib/c-api | ||
[`wasmer.h` headers]: https://wasmerio.github.io/wasmer/c/ | ||
[c docs]: https://wasmerio.github.io/wasmer/c/ | ||
|
||
[c# logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/csharp.svg | ||
[c# integration]: https://github.com/migueldeicaza/WasmerSharp | ||
[`wasmersharp` nuget package]: https://www.nuget.org/packages/WasmerSharp/ | ||
[c# docs]: https://migueldeicaza.github.io/WasmerSharp/ | ||
|
||
[d logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/d.svg | ||
[d integration]: https://github.com/chances/wasmer-d | ||
[`wasmer` Dub package]: https://code.dlang.org/packages/wasmer | ||
[d docs]: https://chances.github.io/wasmer-d | ||
|
||
[python logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/python.svg | ||
[python integration]: https://github.com/wasmerio/wasmer-python | ||
[`wasmer` pypi package]: https://pypi.org/project/wasmer/ | ||
[python docs]: https://github.com/wasmerio/wasmer-python#api-of-the-wasmer-extensionmodule | ||
|
||
[go logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/go.svg | ||
[go integration]: https://github.com/wasmerio/wasmer-go | ||
[`wasmer` go package]: https://pkg.go.dev/github.com/wasmerio/wasmer-go/wasmer | ||
[go docs]: https://pkg.go.dev/github.com/wasmerio/wasmer-go/wasmer?tab=doc | ||
|
||
[php logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/php.svg | ||
[php integration]: https://github.com/wasmerio/wasmer-php | ||
[`wasm` pecl package]: https://pecl.php.net/package/wasm | ||
[php docs]: https://wasmerio.github.io/wasmer-php/wasm/ | ||
|
||
[js logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/js.svg | ||
[js integration]: https://github.com/wasmerio/wasmer-js | ||
[`@wasmerio` npm packages]: https://www.npmjs.com/org/wasmer | ||
[js docs]: https://docs.wasmer.io/integrations/js/reference-api | ||
|
||
[ruby logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/ruby.svg | ||
[ruby integration]: https://github.com/wasmerio/wasmer-ruby | ||
[`wasmer` ruby gem]: https://rubygems.org/gems/wasmer | ||
[ruby docs]: https://www.rubydoc.info/gems/wasmer/ | ||
|
||
[java logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/java.svg | ||
[java integration]: https://github.com/wasmerio/wasmer-java | ||
[`wasmer/wasmer-jni` bintray package]: https://bintray.com/wasmer/wasmer-jni/wasmer-jni | ||
[java docs]: https://github.com/wasmerio/wasmer-java/#api-of-the-wasmer-library | ||
|
||
[elixir logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/elixir.svg | ||
[elixir integration]: https://github.com/tessi/wasmex | ||
[elixir docs]: https://hexdocs.pm/wasmex/api-reference.html | ||
[`wasmex` hex package]: https://hex.pm/packages/wasmex | ||
|
||
[r logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/r.svg | ||
[r integration]: https://github.com/dirkschumacher/wasmr | ||
[r docs]: https://github.com/dirkschumacher/wasmr#example | ||
|
||
[postgres logo]: https://raw.githubusercontent.com/wasmerio/wasmer/master/assets/languages/postgres.svg | ||
[postgres integration]: https://github.com/wasmerio/wasmer-postgres | ||
[postgres docs]: https://github.com/wasmerio/wasmer-postgres#usage--documentation | ||
|
||
[swift integration]: https://github.com/AlwaysRightInstitute/SwiftyWasmer | ||
|
||
## 贡献 | ||
|
||
**我们欢迎任何形式的贡献,尤其是来自社区新成员的贡献** 💜 | ||
|
||
您可以在[我们的出色文档](https://docs.wasmer.io/ecosystem/wasmer/building-from-source) 中检查如何构建Wasmer运行时! | ||
|
||
### 测试 | ||
|
||
要测试吗? The [Wasmer文档将向您展示如何](https://docs.wasmer.io/ecosystem/wasmer/building-from-source/testing). | ||
|
||
## 社区 | ||
|
||
Wasmer拥有一个了不起的开发人员和贡献者社区。 欢迎您,请加入我们! 👋 | ||
|
||
### 频道 | ||
|
||
- [Slack](https://slack.wasmer.io/) | ||
- [Twitter](https://twitter.com/wasmerio) | ||
- [Facebook](https://www.facebook.com/wasmerio) | ||
- [Email](mailto:[email protected]) |
Oops, something went wrong.