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

Package Format #30

Open
ricochet opened this issue Aug 3, 2022 · 3 comments
Open

Package Format #30

ricochet opened this issue Aug 3, 2022 · 3 comments

Comments

@ricochet
Copy link
Contributor

ricochet commented Aug 3, 2022

Goal: define the format for a package

  • Should work with the content-digest field
  • multi-file bundling or how to associate recognized package types with each other.
  • Should this include component validation? For example if the package type is a Component, then it should adhere to binary spec of the Component Model. The same is true for a core module (like the cpython interpreter).

Note: Signature formats do not need to be defined as a part of this (covered by #26).

@lann
Copy link
Collaborator

lann commented Aug 3, 2022

@lukewagner has proposed a "wasm2dir" (ref #9 (reply in thread)) tool/spec that could bundle (and unbundle!) arbitrary other file data into .wasm section(s). As long as that bundling process is deterministically reversible (to allow for content digesting) it could be used for this purpose.

@lann
Copy link
Collaborator

lann commented Aug 3, 2022

Another consideration here is package metadata (assuming we even need it!). If we have multi-file packages of some sort then that could just be a particular filename like wasm-component.json, but it also could be a separate (bincoded?) .wasm section.

This was referenced Aug 3, 2022
@lukewagner
Copy link
Contributor

For package metadata (not accessible at runtime to the component), in the single-.wasm-format, one idea is that these could go into custom sections (with the file name in the custom section name) and then the tree-ified version would explode custom sections out into files. (Then, if we want JSON metadata, it would be JSON in the custom section.)

ricochet pushed a commit to ricochet/SIG-Registries that referenced this issue Oct 25, 2022
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

3 participants