Skip to content

Upgrade Rust SDK to wit-bindgen 0.8#1599

Merged
rylev merged 4 commits intomainfrom
wit-bindgen-0-7
Jul 4, 2023
Merged

Upgrade Rust SDK to wit-bindgen 0.8#1599
rylev merged 4 commits intomainfrom
wit-bindgen-0-7

Conversation

@rylev
Copy link
Collaborator

@rylev rylev commented Jun 20, 2023

This upgrades the Rust SDK to use wit-bindgen 0.8. This PR builds on top of #1594 so we'll want to merge that first (hence why this is a draft). This also supersedes #1424 which I will close.

A few notes:

  • The Rust SDK now no longer requires users to directly depend on wit-bindgen.
  • We are dangerously close to being able to delete the ephemeral wit files, but they are still being referred to in the Go SDK (I need to understand that makefile better before removing it completely).
  • We no longer have bespoke wit files for the Rust SDK - we just use the ones in the top-level wit folder.

In order to merge we need to:

@rylev rylev mentioned this pull request Jun 20, 2023
Base automatically changed from upgrade-wasmtime-10-0 to main June 21, 2023 10:00
@rylev rylev force-pushed the wit-bindgen-0-7 branch from 9000499 to 51aa4f4 Compare June 21, 2023 10:03
@rylev rylev requested a review from dicej June 21, 2023 10:04
@rylev rylev marked this pull request as ready for review June 21, 2023 10:04
@rylev rylev force-pushed the wit-bindgen-0-7 branch 2 times, most recently from 5c320ef to fc5670a Compare June 21, 2023 11:11
@rylev rylev force-pushed the wit-bindgen-0-7 branch from 4b762c8 to a4cff7d Compare June 26, 2023 10:20
@rylev rylev changed the title Upgrade Rust SDK to wit-bindgen 0.7 Upgrade Rust SDK to wit-bindgen 0.8 Jun 26, 2023
@rylev rylev force-pushed the wit-bindgen-0-7 branch from a4cff7d to 8c0d849 Compare June 27, 2023 16:06
http = "0.2"
# The Spin SDK.
spin-sdk = { git = "https://github.com/fermyon/spin", tag = "v1.3.0" }
# Crate that generates Rust Wasm bindings from a WebAssembly interface.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deletion is only ok if the spin-sdk is aligned with the changes made in this PR. I'm unsure if this should be left for the bump of the SDK version or if it's ok to do this deletion now.

rylev added 4 commits July 3, 2023 12:09
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@rylev rylev force-pushed the wit-bindgen-0-7 branch from 8c0d849 to b40ecf2 Compare July 3, 2023 10:09
@rylev rylev removed the do-not-merge label Jul 3, 2023
@rylev rylev merged commit 3e75c42 into main Jul 4, 2023
@rylev rylev deleted the wit-bindgen-0-7 branch July 4, 2023 07:06
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