You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate replacing stdweb with wasm-bindgen ? #44
No idea so far but i'll start playing with it. In my idea, we should still have a single wasm, only replacing internal stdweb glue with wasm-bindgen. I don't now if this impacts cargo-web though.
On the other hand, if custom task is landed, we can write a custom task to build all the js glue code , html and other assets we need to run the game. But even this is not landed, we can still make a cargo sub-command to do so.
If we have a sub-command, we can go a lot of crazy stuff like preprocessing asset to an bundle, convert file format, etc. I start to think it is a very good idea. :)
Activity
edwin0cheng commentedon Apr 12, 2018
Indeed, i had this idea before, but we should figure out how following items works :
Basically, i do not have the big picture about how JS and rust cooperate. Do you have any idea about it?
jice-nospam commentedon Apr 12, 2018
No idea so far but i'll start playing with it. In my idea, we should still have a single wasm, only replacing internal stdweb glue with wasm-bindgen. I don't now if this impacts cargo-web though.
edwin0cheng commentedon Apr 12, 2018
On the other hand, if custom task is landed, we can write a custom task to build all the js glue code , html and other assets we need to run the game. But even this is not landed, we can still make a cargo sub-command to do so.
edwin0cheng commentedon Apr 12, 2018
If we have a sub-command, we can go a lot of crazy stuff like preprocessing asset to an bundle, convert file format, etc. I start to think it is a very good idea. :)
jice-nospam commentedon Apr 12, 2018
A cargo unrust sub command ? This looks sexy !