rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Make a note about `fn render()` problem and point a fix #240

Open orsenkucher opened 4 years ago

orsenkucher commented 4 years ago

Summary

Today, there is a catch with pub fn render(&self) -> String method. String return type crashes wasm-pack build on wasm-pack 0.9.1 version, see:

I've made a note on it, with suggested fix. Hope this will help other readers to resolve it quickly, still mentioning the issue explicitly