wac-parser 0.10.0

A library for parsing and encoding WebAssembly Composition (WAC) source files.
Documentation
(component
  (type (;0;)
    (instance
      (export (;0;) "r" (type (sub resource)))
      (type (;1;) (own 0))
      (type (;2;) (func (result 1)))
      (export (;0;) "[constructor]r" (func (type 2)))
      (type (;3;) (borrow 0))
      (type (;4;) (func (param "self" 3)))
      (export (;1;) "[method]r.foo" (func (type 4)))
      (type (;5;) (func))
      (export (;2;) "[static]r.bar" (func (type 5)))
      (export (;6;) "r2" (type (eq 0)))
      (type (;7;) (borrow 6))
      (type (;8;) (own 6))
      (type (;9;) (tuple 1 8))
      (type (;10;) (func (param "r" 3) (param "r2" 7) (param "r3" 1) (param "r4" 8) (result 9)))
      (export (;3;) "bar" (func (type 10)))
      (type (;11;) (func))
      (export (;4;) "baz" (func (type 11)))
    )
  )
  (import "foo" (instance $foo (;0;) (type 0)))
  (type (;1;)
    (component
      (type (;0;)
        (instance
          (export (;0;) "r" (type (sub resource)))
          (type (;1;) (func))
          (export (;0;) "[static]r.bar" (func (type 1)))
          (export (;2;) "r2" (type (eq 0)))
          (type (;3;) (borrow 0))
          (type (;4;) (borrow 2))
          (type (;5;) (own 0))
          (type (;6;) (own 2))
          (type (;7;) (tuple 5 6))
          (type (;8;) (func (param "r" 3) (param "r2" 4) (param "r3" 5) (param "r4" 6) (result 7)))
          (export (;1;) "bar" (func (type 8)))
        )
      )
      (import "foo" (instance (;0;) (type 0)))
      (export (;1;) "foo" (instance (type 0)))
    )
  )
  (import "unlocked-dep=<foo:bar>" (component (;0;) (type 1)))
  (instance $x (;1;) (instantiate 0
      (with "foo" (instance $foo))
    )
  )
  (alias export $x "foo" (instance (;2;)))
  (export (;3;) "foo" (instance 2))
  (@producers
    (processed-by "wac-parser" "0.10.0")
  )
)