tell newcomers to add `wasm32-unknown-unknown`
ccppoo opened this issue · comments
This is about:
- A typo
- Innaccurate/misleading documentation (e.g. technically incorrect advice)
- Undocumented code
- Outdated documentation
- Other
Problem
I had trivials when running examples of this repository
Just got installed rust, and did what example README.md tells me todo
but faced error messages
![image](https://private-user-images.githubusercontent.com/46418312/249029107-663a873d-e2f7-4779-b983-253131d2a4da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk0MzcwODIsIm5iZiI6MTcwOTQzNjc4MiwicGF0aCI6Ii80NjQxODMxMi8yNDkwMjkxMDctNjYzYTg3M2QtZTJmNy00Nzc5LWI5ODMtMjUzMTMxZDJhNGRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzAzVDAzMzMwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwZTE1MjYzNTk0NWNiMzdhNTljNmI2NDJmZDQ0N2JiMzZjN2JlMGQ5ZjRmODM3YTY5Y2FiNTM5M2JiN2MyZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QaY3S6Tzu5JBG1EyTOeuOYXlZu9tnvWRPP9an6K3YM0)
I was so scared but I tried to find out why and found the solution, add wasm32-unknown-unknown.
Thanks to stackoverflow as I always do
Details about the solution you'd like (Optional)
add doc to install wasm32 dependencies
# thanks to stackoverflow
rustup target add wasm32-unknown-unknown
cargo build --target wasm32-unknown-unknown
Additional context (Optional)
Most of newcomers could not guess wasm32-unknown-unknown is something that should or could be installed
literally it says unknown
I searched error messages I saw, suspecting it was all about Windows
some questions and issues of error messages (including blaming Windows )
were quite simliar from what I saw during this process
So it will be very helpful for others and as well as maintainers
Questionaire (Optional)
- I'd like to write this documentation
- I'd like to write this documentation but I'm not sure what's needed
- I don't have time to add this right now, but maybe later
It may be helpful if the examples refer to the Getting Started guide, or the Tutorial.
At the moment, there may be an assumption that newcomers will have read these documents before trying out the examples.
I don't mind either way of mentioning the link of Tutorial / Getting Started Guide or adding a sentence stating that you need wasm32 target added with rustup. @ccppoo Would you like to add a PR to fix the README?