-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix game of life #229
Fix game of life #229
Conversation
@huangjj27 Cool! Thank you for the PR 👍 |
All right, it’ll be done by tomorrow. |
@deniskolodin Some advice is deperating the ConsoleService in yew when the |
build failed due to #231 in the |
Let me know when you finish this PR, I want to rebase and merge it. |
@deniskolodin I think my job is done, but there is some campatibility issue from |
I think we have to wait for this feature rust-lang/cargo#1197 to merge this PR |
I've rebased this PR and added some fixes. |
problem is fixed but PR is waiting for merging |
@deniskolodin I found that you changed the rand to version |
Fix hasn't merged and in any case we have to use private branch for checking. I'll do it now. Please, don't push updates to this PR. |
This is a temporary bugfix to make the game of life example work. It traces the newest source code in order to use the stdweb feature to make it work. The version of rand crate should be locked once the 0.5 version is released on crates.io close #227
As the stdout is not included in wasm32-unknwon-unknown target, replace the println! macros with yew's ConsoleService. fix #228
Notice that the "cargo web start" command indexing "js/app.js" while the output "cargo web deploy" command have only "game_of_life.js". Tried running proving the latter referencing also work with "start" command.
PR rust-random/rand#444 wokrs |
@deniskolodin the PR is just merged. Now we can test with the newest source code of |
I've updated the dependency to the master branch. If test will be passed I will merge it today and won't wait for the release of |
bors r+ |
229: Fix game of life r=DenisKolodin a=huangjj27 - update rand to github master, need to lock after new rand released - replace `println!` with `console.log`, need nll for more readable code - update example version and author message - change referenced `js/app.js` to `game_of_life.js` Co-authored-by: huangjj27 <[email protected]> Co-authored-by: Denis Kolodin <[email protected]>
Build succeeded |
println!
withconsole.log
, need nll for more readable codejs/app.js
togame_of_life.js