Skip to content

Create some builder functions for manifest #9

@bhelx

Description

@bhelx

It's a bit awkward to have to build the manifest map as a literal. We could perhaps have some small builder functions that help construct the manifest. Something like:

# instead of:
url = "https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm"
manifest = %{wasm: [%{url: url}]}
# you have
manifest = Extism.Manifest.from_url(url)

This would be an addition to the API so doesn't need to go in by 1.0, but would be nice to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions