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

Implement the runtime metadata file (toml) #64

Closed
Angelmmiguel opened this issue Jan 20, 2023 · 1 comment
Closed

Implement the runtime metadata file (toml) #64

Angelmmiguel opened this issue Jan 20, 2023 · 1 comment
Labels
🚀 enhancement New feature or request

Comments

@Angelmmiguel
Copy link
Contributor

Angelmmiguel commented Jan 20, 2023

These kind of files will be managed by wws, so it requires a representation in the source code. For consistency with the project, we chose the format as TOML.

The purpose of them is to "teach" wws how to use certain runtime and which files can be run with it. For this reason, it must include information about the name, version and binary, but also polyfills, arguments and environment variables.

Content

Property Type Description
spec_version u32 The version of this file
name String The runtime name
version String The runtime version number
binary String URL to download the binary
binary_checksum String Binary checksum
extensions String[] Associated file extensions to this runtime
polyfill (optional) String An associated source file with polyfills. It will be mounted inside lib folder using WASI
polyfill_checksum (optional) String The checksum to validate the polyfill file
template (optional) String An optional template in case the source code needs to be modified. For example, to load a library or to add a function call. The provided code will be available in the {code} key
template_checksum (optional) String The checksum to validate the template file
args String[] Arguments to pass in the WASI context
envs (optional) HashMap<String, String> Default environment variables
folders (optional) HashMap<String, Object> A list of folders to mount with this runtime. It includes URL to download a compressed file, mount point and if decompression is required.

We may change these names or add some of them in the future.

It's related to #63

@Angelmmiguel Angelmmiguel added the 🚀 enhancement New feature or request label Jan 20, 2023
@Angelmmiguel Angelmmiguel added this to the v1.0.0 milestone Jan 20, 2023
@Angelmmiguel
Copy link
Contributor Author

This is duplicated from #65

@Angelmmiguel Angelmmiguel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2023
@Angelmmiguel Angelmmiguel removed this from the v1.0.0 milestone Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant