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,73 @@
(component
(type $ty-foo (;0;)
(instance
(export (;0;) "a" (type (sub resource)))
(type (;1;) (own 0))
(type (;2;) (result 1 (error u32)))
(type (;3;) (func (result 2)))
(export (;0;) "[constructor]a" (func (type 3)))
)
)
(import "foo" (instance $foo (;0;) (type $ty-foo)))
(core module $main (;0;)
(type (;0;) (func (param i32)))
(import "foo" "[constructor]a" (func (;0;) (type 0)))
(import "foo" "[resource-drop]a" (func (;1;) (type 0)))
(memory (;0;) 1)
(export "memory" (memory 0))
(@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)))
(table (;0;) 1 1 funcref)
(export "0" (func $"indirect-foo-[constructor]a"))
(export "$imports" (table 0))
(func $"indirect-foo-[constructor]a" (;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 (;2;)
(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))
(alias core export $wit-component-shim-instance "0" (core func $"indirect-foo-[constructor]a" (;0;)))
(alias export $foo "a" (type $a (;1;)))
(core func $resource.drop (;1;) (canon resource.drop $a))
(core instance $foo (;1;)
(export "[constructor]a" (func $"indirect-foo-[constructor]a"))
(export "[resource-drop]a" (func $resource.drop))
)
(core instance $main (;2;) (instantiate $main
(with "foo" (instance $foo))
)
)
(alias core export $main "memory" (core memory $memory (;0;)))
(alias core export $wit-component-shim-instance "$imports" (core table $"shim table" (;0;)))
(alias export $foo "[constructor]a" (func $"[constructor]a" (;0;)))
(core func $"#core-func2 indirect-foo-[constructor]a" (@name "indirect-foo-[constructor]a") (;2;) (canon lower (func $"[constructor]a") (memory $memory)))
(core instance $fixup-args (;3;)
(export "$imports" (table $"shim table"))
(export "0" (func $"#core-func2 indirect-foo-[constructor]a"))
)
(core instance $fixup (;4;) (instantiate $wit-component-fixup
(with "" (instance $fixup-args))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,9 @@
package root:component;
world root {
import foo: interface {
resource a {
constructor() -> result<a, u32>;
}
}
}

View File

@@ -0,0 +1,5 @@
(module
(import "foo" "[constructor]a" (func (param i32)))
(import "foo" "[resource-drop]a" (func (param i32)))
(memory (export "memory") 1)
)

View File

@@ -0,0 +1,9 @@
package foo:bar;
world module {
import foo: interface {
resource a {
constructor() -> result<a, u32>;
}
}
}