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

use error_in_core for BinaryReaderError #1911

Closed
wants to merge 1 commit into from

Conversation

12101111
Copy link
Contributor

No description provided.

@pchickey
Copy link
Contributor

Thanks! This rust feature got stabilized in 1.82. We will have to wait a little longer because of the MSRV policy of this project is to be at least 2 behind stable: https://github.com/bytecodealliance/wasm-tools/blob/main/Cargo.toml#L64-L66

So, once 1.84 is out, we can bump the MSRV in Cargo.toml and land this.

@alexcrichton
Copy link
Member

For wasm-tools the minimum version lags a bit behind Wasmtime due to the broader usage in other projects as well, but in the meantime @12101111 would you be up for adding detection in the build script? One option for doing this is to detect the rustc version in a build script and if it's at-or-above the stabilization of core::error then we can unconditionally include this impl (so either feature = "std" or new enough rustc)

@alexcrichton
Copy link
Member

I've submitted this in #1928 to handle the msrv bits here.

@alexcrichton
Copy link
Member

Implemented in #1928

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

Successfully merging this pull request may close these issues.

3 participants