wit-component 0.5.0

Tooling for working with `*.wit` and component files together.
Documentation
(component
  (type (;0;) (func))
  (import "foo" (func (;0;) (type 0)))
  (type (;1;) (func (result string)))
  (import "bar" (func (;1;) (type 1)))
  (core module (;0;)
    (type (;0;) (func))
    (type (;1;) (func (param i32)))
    (type (;2;) (func (param i32 i32) (result i32)))
    (type (;3;) (func (param i32 i32 i32 i32) (result i32)))
    (import "$root" "foo" (func (;0;) (type 0)))
    (import "$root" "bar" (func (;1;) (type 1)))
    (func (;2;) (type 0))
    (func (;3;) (type 2) (param i32 i32) (result i32)
      unreachable
    )
    (func (;4;) (type 1) (param i32)
      unreachable
    )
    (func (;5;) (type 3) (param i32 i32 i32 i32) (result i32)
      unreachable
    )
    (memory (;0;) 1)
    (export "baz" (func 2))
    (export "foo" (func 3))
    (export "cabi_post_foo" (func 4))
    (export "cabi_realloc" (func 5))
    (export "memory" (memory 0))
  )
  (core module (;1;)
    (type (;0;) (func (param i32)))
    (func $indirect-$root-bar (;0;) (type 0) (param i32)
      local.get 0
      i32.const 0
      call_indirect (type 0)
    )
    (table (;0;) 1 1 funcref)
    (export "0" (func $indirect-$root-bar))
    (export "$imports" (table 0))
  )
  (core module (;2;)
    (type (;0;) (func (param i32)))
    (import "" "0" (func (;0;) (type 0)))
    (import "" "$imports" (table (;0;) 1 1 funcref))
    (elem (;0;) (i32.const 0) func 0)
  )
  (core instance (;0;) (instantiate 1))
  (alias core export 0 "0" (core func (;0;)))
  (core func (;1;) (canon lower (func 0)))
  (core instance (;1;)
    (export "bar" (func 0))
    (export "foo" (func 1))
  )
  (core instance (;2;) (instantiate 0
      (with "$root" (instance 1))
    )
  )
  (alias core export 2 "memory" (core memory (;0;)))
  (alias core export 2 "cabi_realloc" (core func (;2;)))
  (alias core export 0 "$imports" (core table (;0;)))
  (core func (;3;) (canon lower (func 1) (memory 0) (realloc 2) string-encoding=utf8))
  (core instance (;3;)
    (export "$imports" (table 0))
    (export "0" (func 3))
  )
  (core instance (;4;) (instantiate 2
      (with "" (instance 3))
    )
  )
  (alias core export 2 "baz" (core func (;4;)))
  (func (;2;) (type 0) (canon lift (core func 4)))
  (export (;3;) "baz" (func 2))
  (type (;2;) (list u8))
  (type (;3;) (option 2))
  (type (;4;) (func (param "x" string) (result 3)))
  (alias core export 2 "foo" (core func (;5;)))
  (alias core export 2 "cabi_post_foo" (core func (;6;)))
  (func (;4;) (type 4) (canon lift (core func 5) (memory 0) (realloc 2) string-encoding=utf8 (post-return 6)))
  (export (;5;) "foo" (func 4))
)