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,41 @@
(component
(type $ty-foo (;0;)
(instance
(export (;0;) "a" (type (sub resource)))
(type (;1;) (own 0))
(type (;2;) (func (result 1)))
(export (;0;) "[constructor]a" (func (type 2)))
(export (;1;) "[static]a.other-new" (func (type 2)))
)
)
(import "foo" (instance $foo (;0;) (type $ty-foo)))
(core module $main (;0;)
(type (;0;) (func (result i32)))
(type (;1;) (func (param i32)))
(import "foo" "[constructor]a" (func (;0;) (type 0)))
(import "foo" "[static]a.other-new" (func (;1;) (type 0)))
(import "foo" "[resource-drop]a" (func (;2;) (type 1)))
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
(processed-by "my-fake-bindgen" "123.45")
)
)
(alias export $foo "[constructor]a" (func $"[constructor]a" (;0;)))
(core func $"[constructor]a" (;0;) (canon lower (func $"[constructor]a")))
(alias export $foo "[static]a.other-new" (func $"[static]a.other-new" (;1;)))
(core func $"[static]a.other-new" (;1;) (canon lower (func $"[static]a.other-new")))
(alias export $foo "a" (type $a (;1;)))
(core func $resource.drop (;2;) (canon resource.drop $a))
(core instance $foo (;0;)
(export "[constructor]a" (func $"[constructor]a"))
(export "[static]a.other-new" (func $"[static]a.other-new"))
(export "[resource-drop]a" (func $resource.drop))
)
(core instance $main (;1;) (instantiate $main
(with "foo" (instance $foo))
)
)
(@producers
(processed-by "wit-component" "$CARGO_PKG_VERSION")
)
)

View File

@@ -0,0 +1,10 @@
package root:component;
world root {
import foo: interface {
resource a {
constructor();
other-new: static func() -> a;
}
}
}

View File

@@ -0,0 +1,5 @@
(module
(import "foo" "[constructor]a" (func (result i32)))
(import "foo" "[static]a.other-new" (func (result i32)))
(import "foo" "[resource-drop]a" (func (param i32)))
)

View File

@@ -0,0 +1,11 @@
package foo:bar;
world module {
import foo: interface {
resource a {
constructor();
other-new: static func() -> a;
}
}
}