wrpc_runtime_wasmtime/
bindings.rs
mod generated {
wasmtime::component::bindgen!({
world: "wrpc:rpc/imports",
with: {
"wasi": wasmtime_wasi::bindings,
"wrpc:rpc/context/context": with::Context,
"wrpc:rpc/error/error": crate::rpc::Error,
"wrpc:rpc/transport/incoming-channel": crate::rpc::IncomingChannel,
"wrpc:rpc/transport/invocation": crate::rpc::Invocation,
"wrpc:rpc/transport/outgoing-channel": crate::rpc::OutgoingChannel,
},
async: {
only_imports: [
"wrpc:rpc/transport@0.1.0#[static]invocation.finish",
],
},
trappable_imports: true,
require_store_data_send: true,
});
pub mod with {
use core::any::Any;
#[repr(transparent)]
pub struct Context(pub Box<dyn Any + Send>);
}
}
pub use generated::wrpc::rpc;