File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ cargo install wasm-pack
5656cargo install wasm-bindgen-cli
5757```
5858
59+ ``` bash
60+ rustup target add wasm32-unknown-unknown
61+ ```
62+
5963### 3.2 Build Commands
6064
6165``` bash
@@ -76,8 +80,7 @@ npm run prepack
7680cargo build --release --features wasm --target wasm32-unknown-unknown
7781
7882# 2. Generate JS bindings for web
79- wasm-bindgen target/wasm32-unknown-unknown/release/seuif97.wasm \
80- --out-dir pkg --target web
83+ wasm-bindgen ../../target/wasm32-unknown-unknown/release/seuif97.wasm --out-dir pkg --target web
8184
8285# 3. Generate JS bindings for Node.js
8386wasm-bindgen target/wasm32-unknown-unknown/release/seuif97.wasm \
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ pub mod constant;
44pub mod property_id;
55pub mod property_pairs;
66pub mod region;
7- //pub mod region_lazy;
8-
97pub mod transport_further;
108
119pub use self :: boundaries:: * ;
1210pub use self :: constant:: * ;
1311pub use self :: property_id:: * ;
1412pub use self :: property_pairs:: * ;
1513pub use self :: region:: * ;
16- //pub use self::region_lazy::*;
1714pub use self :: transport_further:: * ;
You can’t perform that action at this time.
0 commit comments