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,148 @@
(component
(type (;0;) (record (field "a1" string) (field "a2" string) (field "a3" string) (field "a4" string)))
(import "big2" (type $big2 (;1;) (eq 0)))
(type (;2;) (record (field "a1" $big2) (field "a2" $big2) (field "a3" $big2) (field "a4" $big2)))
(import "big" (type $big (;3;) (eq 2)))
(core module $main (;0;)
(type (;0;) (func))
(table (;0;) 2 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;) i32 i32.const 1048592)
(global (;4;) i32 i32.const 1)
(global (;5;) i32 i32.const 1048592)
(global (;6;) i32 i32.const 1)
(global (;7;) (mut i32) i32.const 1048608)
(global (;8;) (mut i32) i32.const 1114112)
(export "__stack_pointer" (global 0))
(export "__stack_high" (global 1))
(export "__stack_low" (global 2))
(export "c:memory_base" (global 3))
(export "c:table_base" (global 4))
(export "foo:memory_base" (global 5))
(export "foo:table_base" (global 6))
(export "__heap_base" (global 7))
(export "__heap_end" (global 8))
(export "foo" (func 0))
(export "__indirect_function_table" (table 0))
(export "memory" (memory 0))
(func (;0;) (type 0)
i32.const 1
call_indirect (type 0)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module $c (;1;)
(@dylink.0
(mem-info (memory 0 4))
)
(type (;0;) (func))
(import "env" "foo" (func (;0;) (type 0)))
)
(core module $foo (;2;)
(@dylink.0
(mem-info (memory 4 4))
(needed "c")
)
(type (;0;) (func (param i32)))
(type (;1;) (func))
(type (;2;) (func (result i32)))
(type (;3;) (func (param i32 i32 i32) (result i32)))
(import "[export]$root" "[task-return]f" (func (;0;) (type 0)))
(export "foo" (func 1))
(export "[async-lift]f" (func 2))
(export "[callback][async-lift]f" (func 3))
(func (;1;) (type 1))
(func (;2;) (type 2) (result i32)
unreachable
)
(func (;3;) (type 3) (param i32 i32 i32) (result i32)
unreachable
)
)
(core module $__init (;3;)
(type (;0;) (func))
(type (;1;) (func (param i32)))
(type (;2;) (func))
(import "env" "memory" (memory (;0;) 0))
(import "env" "__indirect_function_table" (table (;0;) 0 funcref))
(import "foo" "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 module $wit-component-shim-module (;4;)
(type (;0;) (func (param i32)))
(table (;0;) 1 1 funcref)
(export "0" (func $task-return-f))
(export "$imports" (table 0))
(func $task-return-f (;0;) (type 0) (param i32)
local.get 0
i32.const 0
call_indirect (type 0)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)
(core module $wit-component-fixup (;5;)
(type (;0;) (func (param 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 $wit-component-shim-instance (;0;) (instantiate $wit-component-shim-module))
(core instance $main (;1;) (instantiate $main))
(alias core export $main "memory" (core memory $memory (;0;)))
(alias core export $main "foo" (core func $foo (;0;)))
(core instance $env (;2;)
(export "foo" (func $foo))
)
(core instance $c (;3;) (instantiate $c
(with "env" (instance $env))
)
)
(alias core export $wit-component-shim-instance "0" (core func $task-return-f (;1;)))
(core instance $"[export]$root" (;4;)
(export "[task-return]f" (func $task-return-f))
)
(core instance $foo (;5;) (instantiate $foo
(with "[export]$root" (instance $"[export]$root"))
)
)
(alias core export $wit-component-shim-instance "$imports" (core table $"shim table" (;0;)))
(core func $task.return (;2;) (canon task.return (result $big) (memory $memory) string-encoding=utf8))
(core instance $fixup-args (;6;)
(export "$imports" (table $"shim table"))
(export "0" (func $task.return))
)
(core instance $fixup (;7;) (instantiate $wit-component-fixup
(with "" (instance $fixup-args))
)
)
(core instance $__init (;8;) (instantiate $__init
(with "env" (instance $main))
(with "foo" (instance $foo))
)
)
(type (;4;) (func async (result $big)))
(alias core export $foo "[async-lift]f" (core func $"[async-lift]f" (;3;)))
(alias core export $foo "[callback][async-lift]f" (core func $"[callback][async-lift]f" (;4;)))
(func $f (;0;) (type 4) (canon lift (core func $"[async-lift]f") (memory $memory) string-encoding=utf8 async (callback $"[callback][async-lift]f")))
(export $"#func1 f" (@name "f") (;1;) "f" (func $f))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,19 @@
package root:component;
world root {
record big2 {
a1: string,
a2: string,
a3: string,
a4: string,
}
record big {
a1: big2,
a2: big2,
a3: big2,
a4: big2,
}
export f: async func() -> big;
}

View File

@@ -0,0 +1,4 @@
(module
(@dylink.0 (mem-info (memory 0 4)))
(import "env" "foo" (func))
)

View File

@@ -0,0 +1,3 @@
package test:test;
world lib-c { }

View File

@@ -0,0 +1,12 @@
(module
(@dylink.0
(mem-info (memory 4 4))
(needed "c")
)
(import "[export]$root" "[task-return]f" (func (param i32)))
(func (export "foo"))
(func (export "[async-lift]f") (result i32) unreachable)
(func (export "[callback][async-lift]f") (param i32 i32 i32) (result i32) unreachable)
)

View File

@@ -0,0 +1,16 @@
package test:test;
world lib-foo {
record big {
a1: big2,
a2: big2,
a3: big2,
a4: big2,
}
record big2 {
a1: string,
a2: string,
a3: string,
a4: string,
}
export f: async func() -> big;
}