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

Cannot build locally #25

Open
djducat opened this issue Feb 6, 2022 · 1 comment
Open

Cannot build locally #25

djducat opened this issue Feb 6, 2022 · 1 comment

Comments

@djducat
Copy link

djducat commented Feb 6, 2022

Trying to build the project locally, and am running into some sort of conflict with wasm-glue. Has anyone run into this before?

Compiling wasm-glue v0.1.0
   Compiling syn v0.15.26
error[E0425]: cannot find function `set_print` in module `io`
    --> /Users/dan/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-glue-0.1.0/src/lib.rs:125:9
     |
125  |     io::set_print(Some(Box::new(printer)));
     |         ^^^^^^^^^ help: a function with a similar name exists: `_eprint`
 
error[E0425]: cannot find function `set_print` in module `io`
    --> /Users/dan/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-glue-0.1.0/src/lib.rs:131:9
     |
131  |     io::set_print(Some(Box::new(printer)));
     |         ^^^^^^^^^ help: a function with a similar name exists: `_eprint`

@PriamX
Copy link

PriamX commented Oct 12, 2022

Yeah, just ran into it.

The issue appears to be that both io::set_print() and io::set_panic() have been deprecated and removed from rust since v1.50.

See this:

rust-lang/rust#31343

It looks like wasm_glue's lib.rs file (https://github.com/DeMille/wasm-glue/blob/master/src/lib.rs) is going to need a bit of an update to fix this so encrusted can compile cleanly.

So far, poking around, I don't know what the replacement for these functions are. I'm going to keep looking, must be documented in a release note somewhere (or mentioned on github).

(edit: fixed URL)

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

2 participants