wasm_component_layer icon indicating copy to clipboard operation
wasm_component_layer copied to clipboard

`wasm_runtime_layer v0.5.0` breaks `v0.1.18`

Open DougAnderson444 opened this issue 8 months ago • 1 comments

When you use a fresh build of this project, it pulls in wasm_runtime_layer v0.5.0 because ">=0.4.0":

https://github.com/DouglasDwyer/wasm_component_layer/blob/4b7425d444b6dce6f1372b6cef5171b0dd4fb929/Cargo.toml#L21

However 0.5.0 gives an error on this line:

https://github.com/DouglasDwyer/wasm_component_layer/blob/4b7425d444b6dce6f1372b6cef5171b0dd4fb929/src/lib.rs#L187

Module::new in 0.5.0 is expecting &[u8] but finds Cursor


Maybe this should be

 wasm_runtime_layer = { version = "0.4", default-features = false } 

to avoid the breaking change? And then a 0.1.19 to go to 0.5.0?

DougAnderson444 avatar Apr 05 '25 18:04 DougAnderson444

ref https://github.com/DouglasDwyer/wasm_runtime_layer/pull/39

DougAnderson444 avatar Apr 05 '25 18:04 DougAnderson444