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,90 @@
(component
(type (;0;)
(instance
(type (;0;) s8)
(export (;1;) "x" (type (eq 0)))
(type (;2;) (list string))
(type (;3;) (func (param "x" 2)))
(export (;0;) "qux1" (func (type 3)))
(type (;4;) (func))
(export (;1;) "qux2" (func (type 4)))
(type (;5;) (func (param "x" 1)))
(export (;2;) "qux3" (func (type 5)))
)
)
(import "qux" (instance (;0;) (type 0)))
(core module (;0;)
(type (;0;) (func (param i32 i32)))
(type (;1;) (func))
(type (;2;) (func (param i32)))
(type (;3;) (func (param i32 i32 i32 i32) (result i32)))
(import "qux" "qux1" (func (;0;) (type 0)))
(import "qux" "qux2" (func (;1;) (type 1)))
(import "qux" "qux3" (func (;2;) (type 2)))
(func (;3;) (type 3) (param i32 i32 i32 i32) (result i32)
unreachable
)
(memory (;0;) 1)
(export "memory" (memory 0))
(export "cabi_realloc" (func 3))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(core module (;1;)
(type (;0;) (func (param i32 i32)))
(func $indirect-qux-qux1 (;0;) (type 0) (param i32 i32)
local.get 0
local.get 1
i32.const 0
call_indirect (type 0)
)
(table (;0;) 1 1 funcref)
(export "0" (func $indirect-qux-qux1))
(export "$imports" (table 0))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module (;2;)
(type (;0;) (func (param i32 i32)))
(import "" "0" (func (;0;) (type 0)))
(import "" "$imports" (table (;0;) 1 1 funcref))
(elem (;0;) (i32.const 0) func 0)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core instance (;0;) (instantiate 1))
(alias core export 0 "0" (core func (;0;)))
(alias export 0 "qux2" (func (;0;)))
(core func (;1;) (canon lower (func 0)))
(alias export 0 "qux3" (func (;1;)))
(core func (;2;) (canon lower (func 1)))
(core instance (;1;)
(export "qux1" (func 0))
(export "qux2" (func 1))
(export "qux3" (func 2))
)
(core instance (;2;) (instantiate 0
(with "qux" (instance 1))
)
)
(alias core export 2 "memory" (core memory (;0;)))
(alias core export 2 "cabi_realloc" (core func (;3;)))
(alias core export 0 "$imports" (core table (;0;)))
(alias export 0 "qux1" (func (;2;)))
(core func (;4;) (canon lower (func 2) (memory 0) string-encoding=utf8))
(core instance (;3;)
(export "$imports" (table 0))
(export "0" (func 4))
)
(core instance (;4;) (instantiate 2
(with "" (instance 3))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,13 @@
package root:component;
world root {
import qux: interface {
type x = s8;
qux1: func(x: list<string>);
qux2: func();
qux3: func(x: x);
}
}

View File

@@ -0,0 +1,7 @@
(module
(import "qux" "qux1" (func (param i32 i32)))
(import "qux" "qux2" (func))
(import "qux" "qux3" (func (param i32)))
(memory (export "memory") 1)
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable)
)

View File

@@ -0,0 +1,44 @@
(component
(core module $main (;0;)
(table (;0;) 1 funcref)
(memory (;0;) 17)
(global (;0;) (mut i32) i32.const 1048576)
(global (;1;) (mut i32) i32.const 1048576)
(global (;2;) (mut i32) i32.const 0)
(global (;3;) (mut i32) i32.const 1048592)
(global (;4;) (mut i32) i32.const 1114112)
(export "__stack_pointer" (global 0))
(export "__stack_high" (global 1))
(export "__stack_low" (global 2))
(export "__heap_base" (global 3))
(export "__heap_end" (global 4))
(export "__indirect_function_table" (table 0))
(export "memory" (memory 0))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module $__init (;1;)
(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")
)
)
(core instance $main (;0;) (instantiate $main))
(alias core export $main "memory" (core memory $memory (;0;)))
(core instance $__init (;1;) (instantiate $__init
(with "env" (instance $main))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,4 @@
package root:component;
world root {
}

View File

@@ -0,0 +1,82 @@
(component
(type (;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 (;0;) (type 0)))
(core module (;0;)
(type (;0;) (func (param i32 i32)))
(type (;1;) (func (param i32)))
(type (;2;) (func (param i32 i32 i32 i32) (result i32)))
(import "bar" "bar1" (func (;0;) (type 0)))
(import "bar" "bar2" (func (;1;) (type 1)))
(func (;2;) (type 2) (param i32 i32 i32 i32) (result i32)
unreachable
)
(memory (;0;) 1)
(export "memory" (memory 0))
(export "cabi_realloc" (func 2))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(core module (;1;)
(type (;0;) (func (param i32 i32)))
(func $indirect-bar-bar1 (;0;) (type 0) (param i32 i32)
local.get 0
local.get 1
i32.const 0
call_indirect (type 0)
)
(table (;0;) 1 1 funcref)
(export "0" (func $indirect-bar-bar1))
(export "$imports" (table 0))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module (;2;)
(type (;0;) (func (param i32 i32)))
(import "" "0" (func (;0;) (type 0)))
(import "" "$imports" (table (;0;) 1 1 funcref))
(elem (;0;) (i32.const 0) func 0)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core instance (;0;) (instantiate 1))
(alias core export 0 "0" (core func (;0;)))
(alias export 0 "bar2" (func (;0;)))
(core func (;1;) (canon lower (func 0)))
(core instance (;1;)
(export "bar1" (func 0))
(export "bar2" (func 1))
)
(core instance (;2;) (instantiate 0
(with "bar" (instance 1))
)
)
(alias core export 2 "memory" (core memory (;0;)))
(alias core export 2 "cabi_realloc" (core func (;2;)))
(alias core export 0 "$imports" (core table (;0;)))
(alias export 0 "bar1" (func (;1;)))
(core func (;3;) (canon lower (func 1) (memory 0) string-encoding=utf8))
(core instance (;3;)
(export "$imports" (table 0))
(export "0" (func 3))
)
(core instance (;4;) (instantiate 2
(with "" (instance 3))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,13 @@
package root:component;
world root {
import bar: interface {
record x {
a: u8,
}
bar1: func(x: string);
bar2: func(x: x);
}
}

View File

@@ -0,0 +1,6 @@
(module
(import "bar" "bar1" (func (param i32 i32)))
(import "bar" "bar2" (func (param i32)))
(memory (export "memory") 1)
(func (export "cabi_realloc") (param i32 i32 i32 i32) (result i32) unreachable)
)

View File

@@ -0,0 +1,25 @@
package foo:root;
package foo:bar {
world module {
import bar: interface {
record x {
a: u8
}
bar1: func(x: string);
bar2: func(x: x);
}
}
}
package baz:qux {
world module {
import qux: interface {
type x = s8;
qux1: func(x: list<string>);
qux2: func();
qux3: func(x: x);
}
}
}