feat(*)!: Uses wasm-pkg-client for loading dependencies by thomastaylor312 · Pull Request #322 · bytecodealliance/cargo-component (original) (raw)

This is a fairly large PR because this dependency is used everywhere. cargo component now uses the new wasm-pkg-tools toolchain to load deps, which means that both OCI and Warg are supported. This tries to stay as close to the original code style as possible, but I did have to make large changes to how dependencies were being resolved to account for the new library. There are a couple major breaking changes to be aware of and one question to answer. This PR is already quite large, so I figured it would be better to probably merge this and then deal with follow ups to any of the outstanding questions below:

Signed-off-by: Taylor Thomas taylor@cosmonic.com