rustwasm / book

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

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

Open orsenkucher opened 3 years ago

orsenkucher commented 3 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