pruner-plugin-api 0.1.0

WIT bindings for Pruners Plugin API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package pruner:plugin-api@1.0.0;

interface formatter {
  variant format-error {
    error(string),
  }

  record format-opts {
    print-width: u32,
    lang: string,
  }

  format: func(source: list<u8>, opts: format-opts) -> result<list<u8>, format-error>;
}

world plugin {
  export formatter;
}