wrpc_runtime_wasmtime/
bindings.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;