This plugin enables adding component dependencies to a Spin app. It also generates the importized wit for the imported component which can be used to generate bindings.
spin plugins install --url https://github.com/fermyon/spin-deps-plugin/releases/download/canary/spin-deps.json -yMake sure you are in the root of a spin project with a spin.toml.
spin deps add <path to component> # for adding a dependency on a local component
spin deps add <http url to component> --digest <digest of component> --name <name of component> # for adding a dependency on component from a HTTP source
spin deps add --registry <optional registry> <package_name> # for adding a dependency on a component from the registry. package_name is of the form 'foo:bar@=0.1.0'This should now prompt a few more questions about which component to add a dependency to and interfaces to import. Once that is done, the spin.toml will be updated and the importized bindings will be generated in .wit/components.