wit-component 0.238.0

Tooling for working with `*.wit` and component files together.
Documentation
(component
  (type (;0;)
    (instance
      (type (;0;) (func (param "v" s32) (result s32)))
      (export (;0;) "foo" (func (type 0)))
    )
  )
  (import "test:test/test" (instance (;0;) (type 0)))
  (core module (;0;)
    (type (;0;) (func (param i32) (result i32)))
    (table (;0;) 2 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 1)
    (global (;6;) (mut i32) i32.const 1048592)
    (global (;7;) (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 "foo:foo" (global 5))
    (export "__heap_base" (global 6))
    (export "__heap_end" (global 7))
    (export "foo" (func 0))
    (export "__indirect_function_table" (table 0))
    (export "memory" (memory 0))
    (func (;0;) (type 0) (param i32) (result i32)
      local.get 0
      i32.const 1
      call_indirect (type 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 "foo" (func $foo))
    (func $foo (;0;) (type 0) (param i32) (result i32)
      unreachable
    )
  )
  (core module (;2;)
    (@dylink.0
      (mem-info (memory 0 4))
    )
    (type (;0;) (func (param i32) (result i32)))
    (import "test:test/test" "foo" (func $import_foo (;0;) (type 0)))
    (import "env" "foo" (func $import_foo2 (;1;) (type 0)))
    (import "GOT.func" "foo" (global $import_foo2_address (;0;) (mut i32)))
    (export "test:test/test#foo" (func $import_foo2))
  )
  (core module (;3;)
    (type (;0;) (func))
    (type (;1;) (func (param i32)))
    (type (;2;) (func (param i32) (result i32)))
    (import "env" "memory" (memory (;0;) 0))
    (import "env" "__indirect_function_table" (table (;0;) 0 funcref))
    (import "bar" "foo" (func (;0;) (type 2)))
    (start 1)
    (elem (;0;) (i32.const 1) func)
    (elem (;1;) (i32.const 1) func 0)
    (func (;1;) (type 0))
    (data (;0;) (i32.const 1048576) "\00\00\00\00\00\00\10\00")
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
    )
  )
  (core instance (;0;) (instantiate 0))
  (alias core export 0 "memory" (core memory (;0;)))
  (core instance (;1;) (instantiate 1))
  (alias export 0 "foo" (func (;0;)))
  (core func (;0;) (canon lower (func 0)))
  (core instance (;2;)
    (export "foo" (func 0))
  )
  (alias core export 1 "foo" (core func (;1;)))
  (core instance (;3;)
    (export "foo" (func 1))
  )
  (alias core export 0 "foo:foo" (core global (;0;)))
  (core instance (;4;)
    (export "foo" (global 0))
  )
  (core instance (;5;) (instantiate 2
      (with "test:test/test" (instance 2))
      (with "env" (instance 3))
      (with "GOT.func" (instance 4))
    )
  )
  (core instance (;6;) (instantiate 3
      (with "env" (instance 0))
      (with "bar" (instance 1))
    )
  )
  (type (;1;) (func (param "v" s32) (result s32)))
  (alias core export 5 "test:test/test#foo" (core func (;2;)))
  (func (;1;) (type 1) (canon lift (core func 2)))
  (component (;0;)
    (type (;0;) (func (param "v" s32) (result s32)))
    (import "import-func-foo" (func (;0;) (type 0)))
    (type (;1;) (func (param "v" s32) (result s32)))
    (export (;1;) "foo" (func 0) (func (type 1)))
  )
  (instance (;1;) (instantiate 0
      (with "import-func-foo" (func 1))
    )
  )
  (export (;2;) "test:test/test" (instance 1))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)