1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
//@ wasmtime-flags = '-Wcomponent-model-async' include!(env!("BINDINGS")); use crate::a::b::i::*; // Explicitly require Send. fn require_send<T: Send>(t: T) -> T { t } struct Component; export!(Component); impl Guest for Component { async fn run() { require_send(async { one_argument("hello".into()).await; }) .await; } }