0.1.1 • Published 2 years ago

cross_rust_wasm v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

cross_rust_wasm

1 about

https://www.npmjs.com/package/cross_rust_wasm


2 use cross_rust_wasm

nodejs:

npm i rust_wasm@nodejs

webpack(bundler):

npm i rust_wasm@bundler

web:

npm i rust_wasm@web

no-modules:

npm i rust_wasm@no-modules

3🚴 build & publish

2.1 build with wasm-pack build

deploying-rust-and-webassembly

pack-and-publish

# default: --target bundler
wasm-pack build

# or: --target bundler
wasm-pack build --target nodejs

# or: --target web
wasm-pack build --target web

# or: --target no-modules
wasm-pack build --target no-modules

2.2 🔬 test in headless browsers with wasm-pack test

wasm-pack test --headless --firefox

2.3 🎁 publish to npm with wasm-pack publish

npm select source from nrm:https://github.com/Pana/nrm

# 
nrm ls
nrm use npm
npm adduser

# or --tag xxx
wasm-pack publish

nrm ls
#nrm use tencent
wasm-pack publish

3 build & publish by:

1 https://github.com/rustwasm/wasm-pack

2 https://developer.mozilla.org/zh-CN/docs/WebAssembly/Rust_to_wasm


0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago