Canary script file format #30
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: canary/canary-rs#30
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I believe that there is a need for Canary scripts to have an extensible, easy-to-code metadata format that contains essential data such as the list of protocols that the script supports, its authors, its license, its website, pre-execution configuration, and other info to help the usability of the scripts. Before, I was thinking that Canary's metadata could be passed from the script to the host using strings copied from script memory, however, I now believe that the best long-term way to do this would be in a dedicated JSON metadata section that precedes the WebAssembly binary in a special file format. This way, script metadata can be rapidly read from without the need to instantiate its module to query the metadata.
File format:
Steps involved:
file
moduleCanaryFile
struct with the serialized JSON and WebAssembly binary as membersCanaryFile
fromimpl Read
Future goals once this is done:
Also, what file extension should Canary scripts use?