Configure a Polywrap Manifest
Each wrap is orchestrated by a Polywrap Manifest polywrap.yaml
file.
The Polywrap Manfiest provides the Polywrap CLI with basic information it needs to build
the wrap
and generate code bindings with codegen
.
Content
The Polywrap Manifest contains the name of the wrap, programming language used to write it, and the location of the wrap schema that declares the wrap's interface.
It optionally includes a path to the wrap's entry file (e.g. src/index.ts, src/lib.rs) and paths to other manifests that can be used to configure the build and deploy process. It can also contain an array of URI Redirects.
- Schema
- Example
format: # The manifest format version
project: # Project information
name: # Name of wrap
type: # Type/language of project
source: # Source code information
schema: # Path to wrap schema
module: # (Optional) Path to entry file
import_abis: # (Optional) Array of URI redirects used to resolve imports in the schema
- uri: # One of the schema's import URI
abi: # Path to a local ABI or schema. Supported file formats: [*.graphql, *.info, *.json, *.yaml]
extensions:
build: # (Optional) Path to Build Manifest file
resources: # (Optional) Path to Resources directory
format: 0.3.0
project:
name: simple-storage
type: wasm/assemblyscript
source:
schema: ./src/schema.graphql
module: ./src/index.ts
extensions:
build: ./polywrap.build.yaml
resources: "./resources"