# 四.wasm

前言

使用wasm-pack创建WebAssembly项目

# 1.创建项目

cargo install wasm-pack
1
cargo new hello-wasm --lib
1

# 2.项目构建

wasm-pack build --target web
1