| /wasmtime-44.0.1/tests/misc_testsuite/component-model/async/ |
| H A D | fused.wast | 13 (func (export "foo") (param i32) (result i32) 32 (core func $foo (canon lower (func $foo) async (memory $libc "memory"))) 35 (import "" "foo" (func $foo (param i32 i32) (result i32))) 47 (with "" (instance (export "foo" (func $foo)))) 69 (canon lift (core func $i "foo")) 77 (core func $foo (canon lower (func $foo) async (memory $libc "memory"))) 80 (import "" "foo" (func $foo (param i32 i32) (result i32))) 92 (with "" (instance (export "foo" (func $foo)))) 127 (core func $foo (canon lower (func $foo))) 129 (import "" "foo" (func $foo (param i32) (result i32))) [all …]
|
| H A D | stackful.wast | 10 (func (export "foo") (param i32) unreachable) 14 (func (export "foo") (param "p1" u32) (result u32) 15 (canon lift (core func $i "foo") async) 32 (canon lift (core func $i "foo") async) 40 (core func $foo (canon lower (func $foo) async (memory $libc "memory"))) 43 (import "" "foo" (func $foo (param i32 i32) (result i32))) 55 (with "" (instance (export "foo" (func $foo)))) 80 (canon lift (core func $i "foo") async) 86 (core func $foo (canon lower (func $foo))) 88 (import "" "foo" (func $foo (param i32) (result i32))) [all …]
|
| H A D | lower.wast | 5 (import "host-echo-u32" (func $foo (param "p1" u32) (result u32))) 8 (core func $foo (canon lower (func $foo) async (memory $libc "memory"))) 10 (func (import "" "foo") (param i32 i32) (result i32)) 12 (core instance $i (instantiate $m (with "" (instance (export "foo" (func $foo))))))
|
| /wasmtime-44.0.1/crates/component-macro/tests/ |
| H A D | codegen.rs | 105 impl foo::Host for MyComponent {} 274 with: { "foo:foo/a": super::bindings::foo::foo::a } 280 fn x(&mut self) -> super::bindings::foo::foo::a::T { in x() 314 with: { "foo:foo": super::bindings::foo::foo } 320 fn x(&mut self) -> super::bindings::foo::foo::a::T { in x() 360 fn x(&mut self) -> super::bindings::foo::foo::a::T { in x() 381 fn foo(&mut self) {} in foo() method 481 impl foo::foo::a::Host for X { 488 impl foo::foo::a::HostR for X { 531 impl foo::foo::a::Host for X {} [all …]
|
| /wasmtime-44.0.1/crates/component-macro/tests/codegen/ |
| H A D | use-paths.wit | 1 package foo:foo; 4 record foo {} 6 a: func() -> foo; 10 use a.{foo}; 12 a: func() -> foo; 16 use b.{foo}; 18 a: func() -> foo; 25 use c.{foo}; 27 b: func() -> foo;
|
| /wasmtime-44.0.1/crates/component-macro/tests/expanded/ |
| H A D | rename.rs | 168 D: foo::foo::green::HostWithStore + foo::foo::red::HostWithStore, in add_to_linker() 169 for<'a> D::Data<'a>: foo::foo::green::Host + foo::foo::red::Host, in add_to_linker() 172 foo::foo::green::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 173 foo::foo::red::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 pub mod foo { module 179 pub mod foo { module 213 pub type Thing = super::super::super::foo::foo::green::Thing; 224 fn foo(&mut self) -> Thing; in foo() method 227 fn foo(&mut self) -> Thing { in foo() method 228 Host::foo(*self) in foo() [all …]
|
| H A D | rename_async.rs | 168 D: foo::foo::green::HostWithStore + foo::foo::red::HostWithStore + Send, in add_to_linker() 169 for<'a> D::Data<'a>: foo::foo::green::Host + foo::foo::red::Host + Send, in add_to_linker() 172 foo::foo::green::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 173 foo::foo::red::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 pub mod foo { module 179 pub mod foo { module 213 pub type Thing = super::super::super::foo::foo::green::Thing; 224 fn foo(&mut self) -> impl ::core::future::Future<Output = Thing> + Send; in foo() method 227 fn foo(&mut self) -> impl ::core::future::Future<Output = Thing> + Send { in foo() method 228 async move { Host::foo(*self).await } in foo() [all …]
|
| H A D | resources-export_concurrent.rs | 75 interface0: exports::foo::foo::simple_export::GuestIndices, 106 interface0: exports::foo::foo::simple_export::Guest, 107 interface1: exports::foo::foo::export_using_import::Guest, 108 interface2: exports::foo::foo::export_using_export1::Guest, 109 interface3: exports::foo::foo::export_using_export2::Guest, 204 D: foo::foo::transitive_import::HostWithStore + Send, in add_to_linker() 216 ) -> &exports::foo::foo::export_using_import::Guest { in foo_foo_export_using_import() 221 ) -> &exports::foo::foo::export_using_export1::Guest { in foo_foo_export_using_export1() 226 ) -> &exports::foo::foo::export_using_export2::Guest { in foo_foo_export_using_export2() 231 pub mod foo { module [all …]
|
| H A D | resources-export.rs | 75 interface0: exports::foo::foo::simple_export::GuestIndices, 106 interface0: exports::foo::foo::simple_export::Guest, 107 interface1: exports::foo::foo::export_using_import::Guest, 108 interface2: exports::foo::foo::export_using_export1::Guest, 109 interface3: exports::foo::foo::export_using_export2::Guest, 204 D: foo::foo::transitive_import::HostWithStore, in add_to_linker() 216 ) -> &exports::foo::foo::export_using_import::Guest { in foo_foo_export_using_import() 221 ) -> &exports::foo::foo::export_using_export1::Guest { in foo_foo_export_using_export1() 226 ) -> &exports::foo::foo::export_using_export2::Guest { in foo_foo_export_using_export2() 231 pub mod foo { module [all …]
|
| H A D | resources-export_async.rs | 75 interface0: exports::foo::foo::simple_export::GuestIndices, 106 interface0: exports::foo::foo::simple_export::Guest, 107 interface1: exports::foo::foo::export_using_import::Guest, 108 interface2: exports::foo::foo::export_using_export1::Guest, 109 interface3: exports::foo::foo::export_using_export2::Guest, 204 D: foo::foo::transitive_import::HostWithStore + Send, in add_to_linker() 216 ) -> &exports::foo::foo::export_using_import::Guest { in foo_foo_export_using_import() 221 ) -> &exports::foo::foo::export_using_export1::Guest { in foo_foo_export_using_export1() 226 ) -> &exports::foo::foo::export_using_export2::Guest { in foo_foo_export_using_export2() 231 pub mod foo { module [all …]
|
| H A D | unstable-features.rs | 64 impl core::convert::From<LinkOptions> for foo::foo::the_interface::LinkOptions { 69 impl core::convert::From<&LinkOptions> for foo::foo::the_interface::LinkOptions { 93 HostBaz::foo(*self, self_) in foo() 205 fn foo(&mut self) -> (); in foo() method 208 fn foo(&mut self) -> () { in foo() method 209 TheWorldImports::foo(*self) in foo() 333 D: foo::foo::the_interface::HostWithStore + TheWorldImportsWithStore, in add_to_linker() 334 for<'a> D::Data<'a>: foo::foo::the_interface::Host + TheWorldImports, in add_to_linker() 340 foo::foo::the_interface::add_to_linker::< in add_to_linker() 350 pub mod foo { module [all …]
|
| H A D | use-paths.rs | 168 D: foo::foo::a::HostWithStore + foo::foo::b::HostWithStore in add_to_linker() 169 + foo::foo::c::HostWithStore + d::HostWithStore, in add_to_linker() 172 >: foo::foo::a::Host + foo::foo::b::Host + foo::foo::c::Host + d::Host, in add_to_linker() 175 foo::foo::a::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 176 foo::foo::b::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 177 foo::foo::c::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 183 pub mod foo { module 184 pub mod foo { module 242 pub type Foo = super::super::super::foo::foo::a::Foo; 285 pub type Foo = super::super::super::foo::foo::b::Foo; [all …]
|
| H A D | rename_tracing_async.rs | 168 D: foo::foo::green::HostWithStore + foo::foo::red::HostWithStore + Send, in add_to_linker() 169 for<'a> D::Data<'a>: foo::foo::green::Host + foo::foo::red::Host + Send, in add_to_linker() 172 foo::foo::green::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 173 foo::foo::red::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 pub mod foo { module 179 pub mod foo { module 213 pub type Thing = super::super::super::foo::foo::green::Thing; 224 fn foo(&mut self) -> impl ::core::future::Future<Output = Thing> + Send; in foo() method 227 fn foo(&mut self) -> impl ::core::future::Future<Output = Thing> + Send { in foo() method 228 async move { Host::foo(*self).await } in foo() [all …]
|
| H A D | rename_concurrent.rs | 168 D: foo::foo::green::HostWithStore + foo::foo::red::HostWithStore + Send, in add_to_linker() 169 for<'a> D::Data<'a>: foo::foo::green::Host + foo::foo::red::Host + Send, in add_to_linker() 172 foo::foo::green::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 173 foo::foo::red::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 pub mod foo { module 179 pub mod foo { module 213 pub type Thing = super::super::super::foo::foo::green::Thing; 219 fn foo<T: Send>( in foo() method 240 let r = <D as HostWithStore>::foo(host).await; in add_to_linker()
|
| H A D | resources-export_tracing_async.rs | 75 interface0: exports::foo::foo::simple_export::GuestIndices, 106 interface0: exports::foo::foo::simple_export::Guest, 107 interface1: exports::foo::foo::export_using_import::Guest, 108 interface2: exports::foo::foo::export_using_export1::Guest, 109 interface3: exports::foo::foo::export_using_export2::Guest, 204 D: foo::foo::transitive_import::HostWithStore + Send, in add_to_linker() 216 ) -> &exports::foo::foo::export_using_import::Guest { in foo_foo_export_using_import() 221 ) -> &exports::foo::foo::export_using_export1::Guest { in foo_foo_export_using_export1() 226 ) -> &exports::foo::foo::export_using_export2::Guest { in foo_foo_export_using_export2() 231 pub mod foo { module [all …]
|
| H A D | use-paths_concurrent.rs | 168 D: foo::foo::a::HostWithStore + foo::foo::b::HostWithStore in add_to_linker() 169 + foo::foo::c::HostWithStore + d::HostWithStore + Send, in add_to_linker() 172 >: foo::foo::a::Host + foo::foo::b::Host + foo::foo::c::Host + d::Host in add_to_linker() 176 foo::foo::a::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 177 foo::foo::b::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 foo::foo::c::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 184 pub mod foo { module 185 pub mod foo { module 239 pub type Foo = super::super::super::foo::foo::a::Foo; 278 pub type Foo = super::super::super::foo::foo::b::Foo; [all …]
|
| H A D | unstable-features_async.rs | 64 impl core::convert::From<LinkOptions> for foo::foo::the_interface::LinkOptions { 69 impl core::convert::From<&LinkOptions> for foo::foo::the_interface::LinkOptions { 88 fn foo( in foo() method 98 fn foo( in foo() method 354 D: foo::foo::the_interface::HostWithStore + TheWorldImportsWithStore + Send, in add_to_linker() 355 for<'a> D::Data<'a>: foo::foo::the_interface::Host + TheWorldImports + Send, in add_to_linker() 361 foo::foo::the_interface::add_to_linker::< in add_to_linker() 371 pub mod foo { module 372 pub mod foo { module 423 fn foo( in foo() method [all …]
|
| H A D | use-paths_async.rs | 168 D: foo::foo::a::HostWithStore + foo::foo::b::HostWithStore in add_to_linker() 169 + foo::foo::c::HostWithStore + d::HostWithStore + Send, in add_to_linker() 172 >: foo::foo::a::Host + foo::foo::b::Host + foo::foo::c::Host + d::Host in add_to_linker() 176 foo::foo::a::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 177 foo::foo::b::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 foo::foo::c::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 184 pub mod foo { module 185 pub mod foo { module 245 pub type Foo = super::super::super::foo::foo::a::Foo; 290 pub type Foo = super::super::super::foo::foo::b::Foo; [all …]
|
| H A D | resources-import.rs | 136 interface1: exports::foo::foo::uses_resource_transitively::Guest, 327 D: foo::foo::resources::HostWithStore in add_to_linker() 328 + foo::foo::long_use_chain1::HostWithStore in add_to_linker() 329 + foo::foo::long_use_chain2::HostWithStore in add_to_linker() 330 + foo::foo::long_use_chain3::HostWithStore in add_to_linker() 331 + foo::foo::long_use_chain4::HostWithStore in add_to_linker() 336 >: foo::foo::resources::Host + foo::foo::long_use_chain1::Host in add_to_linker() 337 + foo::foo::long_use_chain2::Host + foo::foo::long_use_chain3::Host in add_to_linker() 338 + foo::foo::long_use_chain4::Host in add_to_linker() 374 pub mod foo { module [all …]
|
| H A D | use-paths_tracing_async.rs | 168 D: foo::foo::a::HostWithStore + foo::foo::b::HostWithStore in add_to_linker() 169 + foo::foo::c::HostWithStore + d::HostWithStore + Send, in add_to_linker() 172 >: foo::foo::a::Host + foo::foo::b::Host + foo::foo::c::Host + d::Host in add_to_linker() 176 foo::foo::a::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 177 foo::foo::b::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 178 foo::foo::c::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 184 pub mod foo { module 185 pub mod foo { module 258 pub type Foo = super::super::super::foo::foo::a::Foo; 316 pub type Foo = super::super::super::foo::foo::b::Foo; [all …]
|
| H A D | char.rs | 75 interface0: exports::foo::foo::chars::GuestIndices, 103 interface0: exports::foo::foo::chars::Guest, 117 let interface0 = exports::foo::foo::chars::GuestIndices::new(_instance_pre)?; in new() 174 D: foo::foo::chars::HostWithStore, in add_to_linker() 175 for<'a> D::Data<'a>: foo::foo::chars::Host, in add_to_linker() 178 foo::foo::chars::add_to_linker::<T, D>(linker, host_getter)?; in add_to_linker() 181 pub fn foo_foo_chars(&self) -> &exports::foo::foo::chars::Guest { in foo_foo_chars() 186 pub mod foo { module 187 pub mod foo { module 248 pub mod foo { module [all …]
|
| H A D | unstable-features_tracing_async.rs | 64 impl core::convert::From<LinkOptions> for foo::foo::the_interface::LinkOptions { 69 impl core::convert::From<&LinkOptions> for foo::foo::the_interface::LinkOptions { 88 fn foo( in foo() method 98 fn foo( in foo() method 383 D: foo::foo::the_interface::HostWithStore + TheWorldImportsWithStore + Send, in add_to_linker() 384 for<'a> D::Data<'a>: foo::foo::the_interface::Host + TheWorldImports + Send, in add_to_linker() 390 foo::foo::the_interface::add_to_linker::< in add_to_linker() 400 pub mod foo { module 401 pub mod foo { module 452 fn foo( in foo() method [all …]
|
| /wasmtime-44.0.1/tests/misc_testsuite/component-model/ |
| H A D | modules.wast | 4 (component $foo 10 (import "foo" (instance 17 (import "foo" (instance 27 (import "foo" (instance 35 (component $foo 51 (import "foo" (instance 60 (import "foo" (instance 68 (component $foo 76 (import "foo" (instance 109 (component $foo [all …]
|
| /wasmtime-44.0.1/docs/ |
| H A D | examples-coredump.md | 8 rustc foo.rs --target=wasm32-wasip1 -C debuginfo=2 12 <summary>foo.rs</summary> 34 $ wasmtime -D coredump=/tmp/coredump foo.wasm 36 thread 'main' panicked at 'attempt to subtract with overflow', foo.rs:10:7 38 Error: failed to run main module `foo.wasm` 49 $ wasmgdb foo.wasm /tmp/coredump 54 #12 000010 as a (v=???) at /path/to/foo.rs 55 #11 000009 as c (v=???) at /path/to/foo.rs 56 #10 000011 as b (v=???) at /path/to/foo.rs 57 #9 000010 as a (v=???) at /path/to/foo.rs [all …]
|
| /wasmtime-44.0.1/tests/misc_testsuite/ |
| H A D | stack_overflow.wast | 2 (func $foo 3 (call $foo) 6 (call $foo) 14 (func $foo 18 (call $foo) 21 (call $foo)
|