wit-component 0.246.2

Tooling for working with `*.wit` and component files together.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(module
  (import "[export]foo" "[resource-new]a" (func $new (param i32) (result i32)))
  (import "[export]foo" "[resource-rep]a" (func (param i32) (result i32)))
  (import "[export]foo" "[resource-drop]a" (func (param i32)))

  (func (export "foo#[constructor]a") (result i32)
    (call $new (i32.const 100))
  )
  (func (export "foo#[static]a.other-new") (result i32)
    (call $new (i32.const 200))
  )
  (func (export "foo#[dtor]a") (param i32)
    ;; ...
  )
)