Home
last modified time | relevance | path

Searched refs:Component (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/wasmtime-44.0.1/tests/all/component_model/
H A Daot.rs3 use wasmtime::component::{Component, Linker, Type};
10 let component = Component::new(&engine, "(component)")?.serialize()?; in module_component_mismatch()
14 assert!(Component::deserialize(&engine, &module).is_err()); in module_component_mismatch()
23 let component = Component::new(&engine, "(component)")?.serialize()?; in bare_bones()
37 let component = Component::new( in mildly_more_interesting()
89 let component = Component::new( in cannot_serialize_exported_module()
107 let component = Component::new( in usable_exported_modules()
129 let buffer = Component::new(&engine, "(component)")?.serialize()?; in detect_precompiled()
134 Some(Precompiled::Component) in detect_precompiled()
142 let c = Component::new( in reflect_resource_import()
[all …]
H A Dmacros.rs24 let component = Component::new( in record_derive()
39 let component = Component::new( in record_derive()
53 let component = Component::new( in record_derive()
70 let component = Component::new( in record_derive()
84 let component = Component::new( in record_derive()
111 let component = Component::new( in record_derive()
142 let component = Component::new( in variant_derive()
160 let component = Component::new( in variant_derive()
174 let component = Component::new( in variant_derive()
191 let component = Component::new( in variant_derive()
[all …]
H A Dlinker.rs3 use wasmtime::component::{Component, Linker, ResourceType};
14 let component = Component::new( in old_import_importing_new_item()
37 let component = Component::new( in new_import_importing_old_item()
62 let component = Component::new( in import_both_old_and_new()
90 let component = Component::new( in missing_import_selects_max()
113 let component = Component::new( in linker_substituting_types_issue_8003()
155 let component = Component::new( in linker_defines_unknown_imports_as_traps()
175 let component = Component::new( in linker_fails_to_define_unknown_core_module_imports_as_traps()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/
H A Dcomponent.hh39 class Component { class
40 WASMTIME_CLONE_WRAPPER(Component, wasmtime_component);
51 static Result<Component> compile(Engine &engine, std::string_view wat) { in compile()
72 static Result<Component> compile(Engine &engine, Span<uint8_t> wasm) { in compile()
79 return Component(ret); in compile()
95 static Result<Component> deserialize(Engine &engine, Span<uint8_t> wasm) { in deserialize()
102 return Component(ret); in deserialize()
117 static Result<Component> deserialize_file(Engine &engine, in deserialize_file()
125 return Component(ret); in deserialize_file()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/component/
H A Dcomponent.rs58 pub struct Component { struct
107 impl Component { impl
217 Component::from_parts(engine, code, None) in deserialize()
236 Component::from_parts(engine, code, None) in deserialize_raw()
257 .load_code_file(file, ObjectKind::Component) in deserialize_file()
259 Component::from_parts(engine, code, None) in deserialize_file()
386 pub fn component_type(&self) -> types::Component { in component_type() argument
406 ) -> Result<Component> { in from_parts() argument
458 Ok(Component { in from_parts()
924 use crate::component::Component;
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dasync_backpressure_callee.rs7 use super::Component;
8 export!(Component);
13 struct Component; struct
15 impl Run for Component { implementation
21 impl Backpressure for Component { implementation
H A Dasync_error_context_callee.rs7 use super::Component;
8 export!(Component);
12 struct Component; struct
14 impl bindings::exports::local::local::run_result::Guest for Component { implementation
24 impl bindings::exports::local::local::run::Guest for Component { implementation
H A Dasync_borrowing_callee.rs7 use super::Component;
8 export!(Component);
16 struct Component; struct
18 impl Borrowing for Component { implementation
30 impl RunBool for Component { implementation
H A Dp2_cli_invoke_async.rs13 use super::Component;
14 export!(Component);
17 struct Component; struct
19 impl bindings::exports::echo::Guest for Component { implementation
H A Dasync_round_trip_direct_stackless.rs7 use super::Component;
8 export!(Component);
11 struct Component; struct
13 impl bindings::Guest for Component { implementation
H A Dasync_closed_stream.rs7 use super::Component;
8 export!(Component);
13 struct Component; struct
15 impl Guest for Component { implementation
H A Dasync_error_context.rs7 use super::Component;
8 export!(Component);
14 struct Component; struct
16 impl Guest for Component { implementation
H A Dasync_round_trip_synchronous.rs8 use super::Component;
9 export!(Component);
14 struct Component; struct
16 impl Baz for Component { implementation
H A Dasync_error_context_caller.rs7 use super::Component;
8 export!(Component);
12 struct Component; struct
14 impl Guest for Component { implementation
H A Dasync_round_trip_stackless_sync_import.rs8 use super::Component;
9 export!(Component);
14 struct Component; struct
16 impl Baz for Component { implementation
H A Dasync_round_trip_stackless.rs8 use super::Component;
9 export!(Component);
14 struct Component; struct
16 impl Baz for Component { implementation
H A Dasync_borrowing_caller.rs7 use super::Component;
8 export!(Component);
16 struct Component; struct
18 impl Guest for Component { implementation
H A Dasync_yield_post_return_callee.rs7 use super::Component;
8 export!(Component);
16 struct Component; struct
18 impl Guest for Component { implementation
H A Dasync_round_trip_wait.rs8 use super::Component;
9 export!(Component);
14 struct Component; struct
16 impl Baz for Component { implementation
H A Dasync_post_return_caller.rs7 use super::Component;
8 export!(Component);
16 struct Component; struct
18 impl Guest for Component { implementation
H A Dasync_yield_callee_synchronous.rs8 use super::Component;
9 export!(Component);
26 struct Component; struct
28 impl Guest for Component { implementation
H A Dasync_unit_stream_caller.rs7 use super::Component;
8 export!(Component);
13 struct Component; struct
15 impl Guest for Component { implementation
H A Dasync_read_resource_stream.rs7 use super::Component;
8 export!(Component);
13 struct Component; struct
15 impl Guest for Component { implementation
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/component/
H A Dresources.rs90 Component { enumerator
114 (Self::Component { rep, ty }, TypedResourceIndex::Component { ty: expected, .. }) => { in rep()
124 (Self::Component { .. }, expected) => bail!(ResourceTypeMismatch { in rep()
145 Component { enumerator
157 Self::Host(index) | Self::Component { index, .. } => *index, in raw_index()
164 Self::Component { .. } => "guest-defined resource", in desc()
180 TypedResource::Component { ty, .. } => { in table_for_resource()
190 TypedResourceIndex::Component { ty, .. } => { in table_for_index()
/wasmtime-44.0.1/tests/all/
H A Dprofiling.rs1 use wasmtime::component::Component;
13 Component::new(&engine, "(component)")?; in perfmap()
14 Component::new(&engine, "(component (core module (func)))")?; in perfmap()
15 Component::new( in perfmap()

12345678910>>...14