Skip to content
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

[feature(set_stdio)] has been removed #3

Open
markwal opened this issue Jan 18, 2021 · 3 comments
Open

[feature(set_stdio)] has been removed #3

markwal opened this issue Jan 18, 2021 · 3 comments

Comments

@markwal
Copy link

markwal commented Jan 18, 2021

rust-lang/rust@aff7bd66e8b moves the two apis into one, and then a later commit makes them take a Vec directly since that is the destination for Rust's one internal consumer (test). Seems like either we need to RFC a supported api into Rust to make wasm-glue possible, or the wasm target compiler should already redirect stdout and stderr to the javascript console.log and/or both.

@markwal
Copy link
Author

markwal commented Jan 18, 2021

See rust-lang/rust@11ce918c comment as well as rust-lang/rust#78714. Total bummer.

@MartinKavik
Copy link

Hey @markwal I'm just writing the second wasm framework and I found out the support for println is even worse... So I've written a comment in the closed Rust issue - rust-lang/rust#31343 (comment) and I hope there will be a solution. I would like to use wasm-glue in both frameworks (Seed, MoonZoon).

@PriamX
Copy link

PriamX commented Oct 12, 2022

Is wasm-glue dead for now? I'm trying to compile up Encrusted and getting hit by these missing functions io::set_print() and io::set_panic().

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants