polywrap / wrap-cli

Used to create, build, and integrate wraps.
https://polywrap.io
MIT License
169 stars 54 forks source link

Polywrap Manifest: Make use of defaults #1909

Closed krisbitney closed 9 months ago

krisbitney commented 9 months ago

Manifest: Make use of defaults

When it comes to developing a wrap, the user needs to define a polywrap.yaml manifest; in this manifest is necessary that the module and schema are defined. This actually may be simplified. The user should not need to define those unless it has some custom name or path (which is actually very rare).

We need to implement defaults per language and make the build process smart enough to find the needed files if not given

Today's Devexp

format: 0.5.0
project:
  name: asyncify
  type: wasm/rust
source:
  schema: ./polywrap.graphql
  module: ./Cargo.toml

Tomorrow's Devexp

format: 0.5.0
project:
  name: asyncify
  type: wasm/rust