golem icon indicating copy to clipboard operation
golem copied to clipboard

Check if WASI deps can be now directly got from wa.dev by cargo-component

Open vigoo opened this issue 1 year ago • 1 comments

If it works, we need to update the golem-examples and the docs

vigoo avatar Mar 28 '24 06:03 vigoo

Not working with cargo-component 0.7.0, recheck after update:

[package.metadata.component.registries]
wasi = "https://wasi.wa.dev"

[package.metadata.component.target]
path = "wit"

[package.metadata.component.target.dependencies]
"wasi:sockets" = { version = "0.2.0", registry = "wasi" }
"wasi:io" = { version = "0.2.0", registry = "wasi" }
"wasi:clocks" = { version = "0.2.0", registry = "wasi" }

vigoo avatar May 08 '24 20:05 vigoo

With the app manifest based compilation this does not matter anymore - even if we could fetch the WITs using cargo-component's dependency support it is not enough because we need them in other phases of the app build.

vigoo avatar May 18 '25 16:05 vigoo