Skip to content

Commit a0253cf

Browse files
committed
Fix build.sh in examples/call_from_js
1 parent 49bc0ca commit a0253cf

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ See the examples directory in this project.
6161
## Code of conduct
6262

6363
Anyone who interacts with this project in any space, including but not limited to
64-
this GitHub repository, must follow our [code of conduct](https://github.com/tomhoule/graphql-client/blob/master/CODE_OF CONDUCT.md).
64+
this GitHub repository, must follow our [code of conduct](https://github.com/tomhoule/graphql-client/blob/master/CODE_OF_CONDUCT.md).
6565

6666
## License
6767

examples/call_from_js/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name = "call_from_js"
33
version = "0.1.0"
44
authors = ["Tom Houlé <[email protected]>"]
55

6+
[profile.release]
7+
lto = "thin"
8+
69
[lib]
710
crate-type = ["cdylib"]
811

@@ -15,4 +18,4 @@ serde_json = "1.0.22"
1518
lazy_static = "1.0.1"
1619

1720
[workspace]
18-
members = ["."]
21+
members = ["."]

examples/call_from_js/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
set -ex
22

3-
cargo +nightly build --target wasm32-unknown-unknown
3+
export CARGO_INCREMENTAL=0
4+
5+
cargo +nightly build --target wasm32-unknown-unknown --release
46

57
wasm-bindgen \
6-
../../target/wasm32-unknown-unknown/debug/call_from_js.wasm --out-dir .
8+
./target/wasm32-unknown-unknown/release/call_from_js.wasm --out-dir .
79

810
npm install
911
npm run serve

0 commit comments

Comments
 (0)