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

multiple fixes #86

Merged
merged 4 commits into from
Jul 11, 2024
Merged

multiple fixes #86

merged 4 commits into from
Jul 11, 2024

Conversation

flavio
Copy link
Member

@flavio flavio commented Jul 10, 2024

The automated release of wasmtime-provider v1.19.0 failed because of a discrepancy between the version of Rust used locally and on the remote branch.
This PR contains several commits that bring more stability and consistency to the project.

Detailed changes

Update to latest stable release of Rust

Update to Rust 1.79.0. Also, make sure all the required targets are installed.

automation: uniform handling of Rust installation

Prior to this commit, the GH actions installed the rust toolchain using the now archived actions-rs/toolchain.

On top of that, the actions were installing latest stable release of Rust, overriding what was specified inside of our rust-toolchain.toml file. That lead to different behaviour locally and inside of the runners.
For example, that caused the automated release of wasmtime-provider 1.19.0 to fail because of different clippy rules between the local development and the runners.

GitHub runners have rustup installed by default. That, together with our rust-toolchain.toml file is enough to get the right version of Rust automatically installed.

deps: update Rust's WASI target

The old wasm32-wasi target has been deprecated and is going to be completely replaced by wasm32-wasip1.

See this blog post.

This commit ensures we use the right WASI target.

As a final note, the .wasm file part of the commit is the same program rebuilt with the new target.

fixes: address linter warnings

Address all the linter warnings raised by latest version of clippy

What's next

Once this PR is merged, I'll tag a new release of wasmtime-provider: v1.19.1.

Update to Rust 1.79.0. Also, make sure all the required targets are
installed.

Signed-off-by: Flavio Castelli <[email protected]>
Prior to this commit, the GH actions installed the rust toolchain using
the now archived `actions-rs/toolchain`.

On top of that, the actions were installing latest `stable` release of
Rust, overriding what was specified inside of our `rust-toolchain.toml`
file. That lead to different behaviour locally and inside of the
runners.
For example, that caused the automated release of `wasmtime-provider`
1.19.0 to fail because of different clippy rules between the local
development and the runners.

GitHub runners have `rustup` installed by default. That, together with
our `rust-toolchain.toml` file is enough to get the right version of
Rust automatically installed.

Signed-off-by: Flavio Castelli <[email protected]>
The old `wasm32-wasi` target has been deprecated and is going to be
completely replaced by `wasm32-wasip1`.

See [this blog post](https://blog.rust-lang.org/2024/04/09/updates-to-rusts-wasi-targets.html).

This commit ensures we use the right WASI target.

As a final note, the `.wasm` file part of the commit is the same program
rebuilt with the new target.

Signed-off-by: Flavio Castelli <[email protected]>
Address all the linter warnings raised by latest version of clippy

Signed-off-by: Flavio Castelli <[email protected]>
@flavio flavio requested review from pkedy and jsoverson July 10, 2024 10:25
@pkedy pkedy merged commit 4bfab87 into wapc:master Jul 11, 2024
3 checks passed
@flavio flavio deleted the multiple-fixes branch July 11, 2024 14:13
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.

2 participants