File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ See the examples directory in this project.
6161## Code of conduct
6262
6363Anyone 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
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name = "call_from_js"
33version = " 0.1.0"
44authors = [" Tom Houlé <tom@tomhoule.com>" ]
55
6+ [profile .release ]
7+ lto = " thin"
8+
69[lib ]
710crate-type = [" cdylib" ]
811
@@ -15,4 +18,4 @@ serde_json = "1.0.22"
1518lazy_static = " 1.0.1"
1619
1720[workspace ]
18- members = [" ." ]
21+ members = [" ." ]
Original file line number Diff line number Diff line change 11set -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
57wasm-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
810npm install
911npm run serve
You can’t perform that action at this time.
0 commit comments