fermyon / spin

Spin is the open source developer tool for building and running serverless applications powered by WebAssembly.
https://developer.fermyon.com/spin
Apache License 2.0
5.52k stars 257 forks source link

More forgiving `wasi:http` version detection #2928

Open itowlson opened 1 week ago

itowlson commented 1 week ago

We detect a couple of supported RCs of wasi:http, plus releases 0.2.0 and 0.2.1. However, the wasi crate (https://docs.rs/wasi/latest/wasi/) has already moved on to 0.2.2, and will presumably move on to 0.2.3 etc. in other minor versions. This means users of the wasi crate in Spin apps have to pin to an exact patch version instead of the 0.13 minor version (see https://github.com/fermyon/leptos-spin/pull/48#discussion_r1847541217).

What would be the practicalities of enabling all 0.2 versions of wasi:http, present and future?

cc @alexcrichton

alexcrichton commented 6 days ago

Ah yes I had forgotten about the explicit checks that Spin performs around here which will need to be relaxed yeah to support any 0.2.* version