wit-component 0.225.0

Tooling for working with `*.wit` and component files together.
Documentation
(component
  (core module (;0;)
    (table (;0;) 1 funcref)
    (memory (;0;) 17)
    (global (;0;) (mut i32) i32.const 1048576)
    (global (;1;) i32 i32.const 1048592)
    (global (;2;) i32 i32.const 1)
    (global (;3;) i32 i32.const 1048592)
    (global (;4;) i32 i32.const 1)
    (global (;5;) (mut i32) i32.const 1048592)
    (global (;6;) (mut i32) i32.const 1114112)
    (export "__stack_pointer" (global 0))
    (export "bar:memory_base" (global 1))
    (export "bar:table_base" (global 2))
    (export "foo:memory_base" (global 3))
    (export "foo:table_base" (global 4))
    (export "__heap_base" (global 5))
    (export "__heap_end" (global 6))
    (export "__indirect_function_table" (table 0))
    (export "memory" (memory 0))
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core module (;1;)
    (@dylink.0
      (mem-info (memory 0 4))
    )
    (type (;0;) (func (param i32) (result i32)))
    (export "test:test/foo#[constructor]x" (func $x_ctor))
    (export "test:test/foo#[method]x.get" (func $x_get))
    (func $foo (;0;) (type 0) (param i32) (result i32)
      unreachable
    )
    (func $x_ctor (;1;) (type 0) (param i32) (result i32)
      unreachable
    )
    (func $x_get (;2;) (type 0) (param i32) (result i32)
      unreachable
    )
  )
  (core module (;2;)
    (@dylink.0
      (mem-info (memory 0 4))
      (needed "foo")
    )
    (type (;0;) (func (param i32) (result i32)))
    (export "test:test/bar#[constructor]x" (func $x_ctor))
    (export "test:test/bar#[method]x.get" (func $x_get))
    (func $x_ctor (;0;) (type 0) (param i32) (result i32)
      unreachable
    )
    (func $x_get (;1;) (type 0) (param i32) (result i32)
      unreachable
    )
  )
  (core module (;3;)
    (type (;0;) (func))
    (type (;1;) (func (param i32)))
    (import "env" "memory" (memory (;0;) 0))
    (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
    (start 0)
    (elem (;0;) (i32.const 1) func)
    (elem (;1;) (i32.const 1) func)
    (func (;0;) (type 0))
    (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (type (;0;) (resource (rep i32)))
  (type (;1;) (resource (rep i32)))
  (core instance (;0;) (instantiate 0))
  (alias core export 0 "memory" (core memory (;0;)))
  (core instance (;1;) (instantiate 1))
  (core instance (;2;) (instantiate 2))
  (core instance (;3;) (instantiate 3
      (with "env" (instance 0))
    )
  )
  (type (;2;) (own 0))
  (type (;3;) (func (param "v" u32) (result 2)))
  (alias core export 1 "test:test/foo#[constructor]x" (core func (;0;)))
  (func (;0;) (type 3) (canon lift (core func 0)))
  (type (;4;) (borrow 0))
  (type (;5;) (func (param "self" 4) (result u32)))
  (alias core export 1 "test:test/foo#[method]x.get" (core func (;1;)))
  (func (;1;) (type 5) (canon lift (core func 1)))
  (component (;0;)
    (import "import-type-x" (type (;0;) (sub resource)))
    (type (;1;) (own 0))
    (type (;2;) (func (param "v" u32) (result 1)))
    (import "import-constructor-x" (func (;0;) (type 2)))
    (type (;3;) (borrow 0))
    (type (;4;) (func (param "self" 3) (result u32)))
    (import "import-method-x-get" (func (;1;) (type 4)))
    (export (;5;) "x" (type 0))
    (type (;6;) (own 5))
    (type (;7;) (func (param "v" u32) (result 6)))
    (export (;2;) "[constructor]x" (func 0) (func (type 7)))
    (type (;8;) (borrow 5))
    (type (;9;) (func (param "self" 8) (result u32)))
    (export (;3;) "[method]x.get" (func 1) (func (type 9)))
  )
  (instance (;0;) (instantiate 0
      (with "import-constructor-x" (func 0))
      (with "import-method-x-get" (func 1))
      (with "import-type-x" (type 0))
    )
  )
  (export (;1;) "test:test/foo" (instance 0))
  (type (;6;) (own 1))
  (type (;7;) (func (param "v" u32) (result 6)))
  (alias core export 2 "test:test/bar#[constructor]x" (core func (;2;)))
  (func (;2;) (type 7) (canon lift (core func 2)))
  (type (;8;) (borrow 1))
  (type (;9;) (func (param "self" 8) (result u32)))
  (alias core export 2 "test:test/bar#[method]x.get" (core func (;3;)))
  (func (;3;) (type 9) (canon lift (core func 3)))
  (component (;1;)
    (import "import-type-x" (type (;0;) (sub resource)))
    (type (;1;) (own 0))
    (type (;2;) (func (param "v" u32) (result 1)))
    (import "import-constructor-x" (func (;0;) (type 2)))
    (type (;3;) (borrow 0))
    (type (;4;) (func (param "self" 3) (result u32)))
    (import "import-method-x-get" (func (;1;) (type 4)))
    (export (;5;) "x" (type 0))
    (type (;6;) (own 5))
    (type (;7;) (func (param "v" u32) (result 6)))
    (export (;2;) "[constructor]x" (func 0) (func (type 7)))
    (type (;8;) (borrow 5))
    (type (;9;) (func (param "self" 8) (result u32)))
    (export (;3;) "[method]x.get" (func 1) (func (type 9)))
  )
  (instance (;2;) (instantiate 1
      (with "import-constructor-x" (func 2))
      (with "import-method-x-get" (func 3))
      (with "import-type-x" (type 1))
    )
  )
  (export (;3;) "test:test/bar" (instance 2))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)