百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

woz

> 编程语言
开源

Woz 是一个用于 Rust 的渐进式 WebAssembly 应用程序 (PWAA) 生成器。

170 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Woz 是一个用于 Rust 的渐进式 WebAssembly 应用程序 (PWAA) 生成器。

What is Woz?

Woz is a progressive WebAssembly app (PWAA) generator for Rust.

Docs

See https://woz.sh for the latest docs.

Quickstart

Before we begin you must have a recent version of Rust installed as well as wasm-bindgen.

Install wasm-bindgen

Woz uses wasm-bindgen to generate the interop calls between WebAssembly and JavaScript. This allows you to write the entire application in Rust—including rendering to the dom.

cargo install -f wasm-bindgen-cli

Install wasm compiler target

rustup target add wasm32-unknown-unknown

Install Woz

Install a pre-built binary.

For macOS (64 bit only):

bash
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-apple-darwin

For linux (via musl):

bash
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-linux-musl

For bsd:

bash
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-freebsd
bash
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-netbsd

Updating

To update to the latest version of woz run the following command.

bash
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- -f --target 

Setup and deploy

bash
# Follow prompts to create a free account and deploy to the sandbox
woz signup
# Create a new app
woz new myapp && cd myapp
# Deploy it
woz deploy

Examples

The 'Seed' example app uses the seed framework and clocks in at ~600kb (including ~300kb for an icon and splashscreen), works offline, and can be installed to your homescreen on iOS or Android devices. You can try it out here

Self-hosting

You can self-host by using woz to build your app locally and upload the files to your static file hosting service such as AWS S3.

Build the app locally:

bash
cd myapp/
woz build

Follow the cli output to get the location of the generated app files on disk. It will look something like:

App package directory can be found at /Users/myusername/.woz/myapp/pkg

The app directory contains an index.html file that will be the entry point for running the app in a browser.

Note: the security requirements for PWAs and WebAssembly means you will need to serve the files over https. Browsing the files directly in the browser (e.g. file://) will result in security-related errors. Use a static file server and install an SSL certificate to be able to install the app to your home screen.

You can also build Woz so that it can use your AWS account and allow multiple users to securely deploy apps to a shared S3 bucket. See https://woz.sh for the latest docs.

License

Eclipse Public License 1.0 (EPL-1.0)

Issues· 4 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustpwarustwasmwasm-bindgen

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言