chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,149 @@
(component
(type $ty-bar (;0;)
(instance
(type (;0;) (record (field "a" u8)))
(export (;1;) "x" (type (eq 0)))
(type (;2;) (func (param "x" string)))
(export (;0;) "bar1" (func (type 2)))
(type (;3;) (func (param "x" 1)))
(export (;1;) "bar2" (func (type 3)))
)
)
(import "bar" (instance $bar (;0;) (type $ty-bar)))
(type $ty-baz (;1;)
(instance
(type (;0;) s8)
(export (;1;) "x" (type (eq 0)))
(type (;2;) (list string))
(type (;3;) (func (param "x" 2)))
(export (;0;) "baz1" (func (type 3)))
(type (;4;) (func))
(export (;1;) "baz2" (func (type 4)))
(type (;5;) (func (param "x" 1)))
(export (;2;) "baz3" (func (type 5)))
)
)
(import "baz" (instance $baz (;1;) (type $ty-baz)))
(type $ty-foo (;2;)
(instance
(type (;0;) (func))
(export (;0;) "foo1" (func (type 0)))
(type (;1;) (func (param "x" u8)))
(export (;1;) "foo2" (func (type 1)))
(type (;2;) (func (param "x" f32)))
(export (;2;) "foo3" (func (type 2)))
)
)
(import "foo" (instance $foo (;2;) (type $ty-foo)))
(core module $main (;0;)
(type (;0;) (func))
(type (;1;) (func (param i32)))
(type (;2;) (func (param f32)))
(type (;3;) (func (param i32 i32)))
(type (;4;) (func (param i32 i32 i32 i32) (result i32)))
(import "foo" "foo1" (func (;0;) (type 0)))
(import "foo" "foo2" (func (;1;) (type 1)))
(import "foo" "foo3" (func (;2;) (type 2)))
(import "bar" "bar1" (func (;3;) (type 3)))
(import "bar" "bar2" (func (;4;) (type 1)))
(import "baz" "baz1" (func (;5;) (type 3)))
(import "baz" "baz2" (func (;6;) (type 0)))
(import "baz" "baz3" (func (;7;) (type 1)))
(memory (;0;) 1)
(export "memory" (memory 0))
(export "cabi_realloc" (func 8))
(func (;8;) (type 4) (param i32 i32 i32 i32) (result i32)
unreachable
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(core module $wit-component-shim-module (;1;)
(type (;0;) (func (param i32 i32)))
(table (;0;) 2 2 funcref)
(export "0" (func $indirect-bar-bar1))
(export "1" (func $indirect-baz-baz1))
(export "$imports" (table 0))
(func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32)
local.get 0
local.get 1
i32.const 0
call_indirect (type 0)
)
(func $indirect-baz-baz1 (;1;) (type 0) (param i32 i32)
local.get 0
local.get 1
i32.const 1
call_indirect (type 0)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module $wit-component-fixup (;2;)
(type (;0;) (func (param i32 i32)))
(import "" "0" (func (;0;) (type 0)))
(import "" "1" (func (;1;) (type 0)))
(import "" "$imports" (table (;0;) 2 2 funcref))
(elem (;0;) (i32.const 0) func 0 1)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core instance $wit-component-shim-instance (;0;) (instantiate $wit-component-shim-module))
(alias export $foo "foo1" (func $foo1 (;0;)))
(core func $foo1 (;0;) (canon lower (func $foo1)))
(alias export $foo "foo2" (func $foo2 (;1;)))
(core func $foo2 (;1;) (canon lower (func $foo2)))
(alias export $foo "foo3" (func $foo3 (;2;)))
(core func $foo3 (;2;) (canon lower (func $foo3)))
(core instance $foo (;1;)
(export "foo1" (func $foo1))
(export "foo2" (func $foo2))
(export "foo3" (func $foo3))
)
(alias core export $wit-component-shim-instance "0" (core func $indirect-bar-bar1 (;3;)))
(alias export $bar "bar2" (func $bar2 (;3;)))
(core func $bar2 (;4;) (canon lower (func $bar2)))
(core instance $bar (;2;)
(export "bar1" (func $indirect-bar-bar1))
(export "bar2" (func $bar2))
)
(alias core export $wit-component-shim-instance "1" (core func $indirect-baz-baz1 (;5;)))
(alias export $baz "baz2" (func $baz2 (;4;)))
(core func $baz2 (;6;) (canon lower (func $baz2)))
(alias export $baz "baz3" (func $baz3 (;5;)))
(core func $baz3 (;7;) (canon lower (func $baz3)))
(core instance $baz (;3;)
(export "baz1" (func $indirect-baz-baz1))
(export "baz2" (func $baz2))
(export "baz3" (func $baz3))
)
(core instance $main (;4;) (instantiate $main
(with "foo" (instance $foo))
(with "bar" (instance $bar))
(with "baz" (instance $baz))
)
)
(alias core export $main "memory" (core memory $memory (;0;)))
(alias core export $wit-component-shim-instance "$imports" (core table $"shim table" (;0;)))
(alias export $bar "bar1" (func $bar1 (;6;)))
(alias core export $main "cabi_realloc" (core func $realloc (;8;)))
(core func $"#core-func9 indirect-bar-bar1" (@name "indirect-bar-bar1") (;9;) (canon lower (func $bar1) (memory $memory) string-encoding=utf8))
(alias export $baz "baz1" (func $baz1 (;7;)))
(core func $"#core-func10 indirect-baz-baz1" (@name "indirect-baz-baz1") (;10;) (canon lower (func $baz1) (memory $memory) string-encoding=utf8))
(core instance $fixup-args (;5;)
(export "$imports" (table $"shim table"))
(export "0" (func $"#core-func9 indirect-bar-bar1"))
(export "1" (func $"#core-func10 indirect-baz-baz1"))
)
(core instance $fixup (;6;) (instantiate $wit-component-fixup
(with "" (instance $fixup-args))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,29 @@
package root:component;
world root {
import bar: interface {
record x {
a: u8,
}
bar1: func(x: string);
bar2: func(x: x);
}
import baz: interface {
type x = s8;
baz1: func(x: list<string>);
baz2: func();
baz3: func(x: x);
}
import foo: interface {
foo1: func();
foo2: func(x: u8);
foo3: func(x: f32);
}
}

View File

@@ -0,0 +1,12 @@
(module
(import "foo" "foo1" (func))
(import "foo" "foo2" (func (param i32)))
(import "foo" "foo3" (func (param f32)))
(import "bar" "bar1" (func (param i32 i32)))
(import "bar" "bar2" (func (param i32)))
(import "baz" "baz1" (func (param i32 i32)))
(import "baz" "baz2" (func))
(import "baz" "baz3" (func (param i32)))
(memory (export "memory") 1)
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable)
)

View File

@@ -0,0 +1,33 @@
package foo:foo;
world module {
import bar: interface {
record x {
a: u8
}
bar1: func(x: string);
bar2: func(x: x);
}
import baz: interface {
type x = s8;
baz1: func(x: list<string>);
baz2: func();
baz3: func(x: x);
}
import foo: interface {
foo1: func();
foo2: func(x: u8);
foo3: func(x: f32);
unused: func();
/// doesn't show up in the wit output despite being exported here since it's
/// not actually used by anything
record unused-record {
f: u8,
}
}
}