-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wasm32-unknown-unknown
target to the setup instructions.
#160
Comments
We can actually completely remove the talk of installing the |
That doesn't happen for me in a fresh environment.
|
Well, but I see here the wasm-pack docs say that it will automatically download the wasm32-unknown-unknown target. I wonder if wasm-pack thinks it's not in a Rust environment in Docker... |
I did some digging and opened an issue in the wasm-pack repo. |
@mqsoh @fitzgen it's still in the docs as needing the "wasm32-unknown-unknown target installed via rustup." It's a slight distraction to a newbie like me who may be struggling to just to get their environment setup... because the docs do not say how to install the target. And even All that said, I found the add syntax in the initial issue post above. I haven't confirmed if wasm-pack makes this obsolete. I'm happy to help edit the docs but I'd need some pointers on how to get started there. |
My issue was that wasm-pack didn't install the wasm32-unknown-unknown target automatically like it was supposed to. It's because the wasm-pack code was checking for rustup in a way that was inconsistent with the way rustup is distributed in the official Rust Docker image. It works now. I just tried it with the latest:
I don't know if the docs have been updated since last I read them, but the wording seems correct to me now. The confusing line is bulleted under "We use wasm-pack to orchestrate the following build steps:" implying that wasm-pack does this for you. It should do that for you. If it doesn't, then your issue isn't related to mine. |
What was the resolution to this issue? Why was it closed? The line telling us to "ensure that we have...the wasm32-unknown-unknown target installed via rustup" still offers no guidance on how to do so. |
I submitted a ticket to the wasm-pack repo and they patched it so that it supports the rustup as installed in the Docker image. My last message was too verbose. I was saying, and demonstrating, that It works now. |
@mqsoh Cool, thanks. I misunderstood this line:
I mistook the bulleted list for prerequisites. I see now that "use wasm-pack to orchestrate" here means "wasm-pack will do this for you, so this is just an FYI list, not something you really even need to think about." |
FWIW, going through the tutorial I also misunderstood this statement. Some rewording of these instructions may be beneficial to improve clarity. |
Didn't work for me when I added it to |
Where in the docs did you come across this?
4.2 Hello, World!
Describe what about it does not make sense
It says to
Why does it not make sense?
It's not part of the setup instructions in section 4.1. I found a page that shows how to install it but it's not up to date. I installed it without the "nightly" stuff and it seems to work.
How could we improve it?
I think you just need to add that line to section 4.1. I thought about making a pull request, but each section has a description of the tool and I'm not entirely sure what to say about it.
The text was updated successfully, but these errors were encountered: