Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ schema-plugin Public archive

A WASM plugin that powers proto's TOML plugin.

License

Notifications You must be signed in to change notification settings

moonrepo/schema-plugin

Repository files navigation

Schema-based plugin

A WASM plugin that powers proto's TOML plugin pattern. This plugin is responsible for parsing the TOML schema file and providing the necessary information to proto by implementing the applicable WASM functions.

Installation

This plugin is built-in to proto, but if you want to override it with an explicit version, add the following to .prototools.

[plugins]
internal-schema = "source:https://github.com/moonrepo/schema-plugin/releases/download/vX.Y.Z/schema_plugin.wasm"

Configuration

This plugin does not support configuration.

Hooks

This plugin does not support hooks.

Contributing

Build the plugin:

cargo build --target wasm32-wasi

Test the plugin by running proto commands.

proto install moon-test
proto list-remote moon-test

Since this plugin requires an external schema file, its testing uses moon: https://moonrepo.dev/docs/install#proto

About

A WASM plugin that powers proto's TOML plugin.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages