Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow packages to declare imports #42

Open
6 tasks
Michael-F-Bryan opened this issue Oct 4, 2022 · 0 comments
Open
6 tasks

Allow packages to declare imports #42

Michael-F-Bryan opened this issue Oct 4, 2022 · 0 comments

Comments

@Michael-F-Bryan
Copy link
Contributor

Some packages will require functionality from the host in order to function. At the moment, wit-pack only generates code for exposing an interface, and any imports are passed in via an untyped imports option.

Implementing this requires the following:

  • Add some sort of imports field to wapm.toml
  • Update the wapm CLI to embed these imports in the *.tar.gz file it generates
  • Update the generated code to expect imports to be provided (will probably mean each library gets its own argument type with the specific imports it expects)
    • Python
    • javaScript
  • Make sure imports are displayed in the WAPM UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant