Skip to content

fermyon/spin-deps-plugin

Repository files navigation

Spin-deps

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.

Installation

spin plugins install --url https://github.com/fermyon/spin-deps-plugin/releases/download/canary/spin-deps.json -y

Using the plugin

Make 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.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published