-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
why wasm32-unknown-unknown? #979
Comments
My understanding is that the first unknown is the system that you are compiling on, and the second is the system you are targeting. So you an think of unknown-unknown as “Compile on almost any machine, run on almost any machine” If you look at other targets “unknown” is commonly used so this is in line with the other targets. Hope that helps!! |
Indeed @chinedufn is spot on here! The wasm32 means that the address space is 32-bits large, and eventually we'll have wasm64 which means the address space will be 64-bits large (but no one implements this yet). In theory this target name is largely hidden from you when using wasm-pack as well! |
@NateLing To expand on what others have already said: yes there will eventually be a The If your concern is with the annoyance of typing out [build]
target = "wasm32-unknown-unknown" |
+1 too confusing, should be self-explanatary |
there is no a better name?
why wasm32-unknown-unknown? there is a wasm32-known-known?
why wasm32? there is a wasm64 or wasm 128?
i think we need new name, like rust-wasm?
The text was updated successfully, but these errors were encountered: