-
Notifications
You must be signed in to change notification settings - Fork 293
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
Update wasi-common to 17.0 #941
Conversation
@Manishearth thanks a lot for the PR! I was under the impression that newer versions post Happy to be back on track if we get your PR merged. :) |
Yes, I believe the versions are linked, but it's fine if you upgrade a bunch of crates together |
It seems like |
crates/wasi/Cargo.toml
Outdated
wasi-common = "2.0" | ||
wasi-cap-std-sync = "2.0" | ||
wiggle = { version = "2.0", default-features = false, features = ["wiggle_metadata"] } | ||
wasi-common = "17.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at Cargo.toml
of the wasi-common
crate's most recent version it has the wasmtime
crate feature enabled as default feature. In order to avoid building Wasmtime via Wasmi we must disable this crate feature by using default-features = false
and features = ["wiggle_metadata", "trace_log", "sync"]
.
wiggle = { version = "2.0", default-features = false, features = ["wiggle_metadata"] } | ||
wasi-common = "17.0" | ||
wasi-cap-std-sync = "17.0" | ||
wiggle = { version = "17.0", default-features = false, features = ["wiggle_metadata"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same applies as in https://github.com/wasmi-labs/wasmi/pull/941/files#r1503430182.
We need to use default-features = false
and features = ["wiggle_metadata"]
Hmm, looks like wasi-cap-std-sync still brings it in |
I don't understand how this stuff all ties in together if you could take a look into what's going on there. We may need to add a feature toggle upstream? |
Indeed, On further inspection Finally, It would be really nice if there was a Wasm engine agnostic WASI implementation but it seems we are not there, yet. |
@Manishearth Do you see a proper way forward? If no, can we close this again? |
@Robbepop The proper way forward is to work upstream with wasi-cap-std-sync. I don't have time to do this right now but probably can at some point. It doesn't seem hard, I'm just less familiar with the bits of the wasm ecosystem. I don't see a need to close this: others can help out with this if I don't get the time. |
I feel that an issue might be the best with a link to this PR which we can re-open once someone willing to work on the issue and with time to do so is found. We could tag the issue as "help needed" to hopefully attracted volunteers. How do you feel about this? |
Seems fine |
Closed in favor of #943. |
We're on 2.0, the latest version is 18.0 though it's not yet available for wasi-cap-std-sync. 2.0 is more than a year old and still uses
syn 1.0
among other older dependencies.They greatly changed how errors work in bytecodealliance/wasmtime#5149, but hopefully the new error code here is roughly equivalent.
(Would appreciate a release if this gets merged)