From 8b18c85ca4c03051b1ac7ea15e4866a6c460fbe6 Mon Sep 17 00:00:00 2001 From: stevelr Date: Mon, 12 Sep 2022 07:54:55 -0700 Subject: [PATCH] export host_call for actors (#117) --- rpc-rs/Cargo.toml | 2 +- rpc-rs/src/actor_wasm.rs | 1 + rpc-rs/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rpc-rs/Cargo.toml b/rpc-rs/Cargo.toml index 98c5f08..1ac4805 100644 --- a/rpc-rs/Cargo.toml +++ b/rpc-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmbus-rpc" -version = "0.10.0" +version = "0.10.1" authors = [ "wasmcloud Team" ] license = "Apache-2.0" description = "Runtime library for actors and capability providers" diff --git a/rpc-rs/src/actor_wasm.rs b/rpc-rs/src/actor_wasm.rs index 829a56e..de47652 100644 --- a/rpc-rs/src/actor_wasm.rs +++ b/rpc-rs/src/actor_wasm.rs @@ -30,6 +30,7 @@ extern "C" { } /// The function through which all host calls (from actors) take place. +#[doc(hidden)] pub fn host_call(binding: &str, ns: &str, op: &str, msg: &[u8]) -> RpcResult> { let callresult = unsafe { __host_call( diff --git a/rpc-rs/src/lib.rs b/rpc-rs/src/lib.rs index a951702..699feab 100644 --- a/rpc-rs/src/lib.rs +++ b/rpc-rs/src/lib.rs @@ -239,7 +239,7 @@ pub mod actor { cfg_if::cfg_if! { if #[cfg(target_arch = "wasm32")] { - pub use crate::actor_wasm::{console_log, WasmHost}; + pub use crate::actor_wasm::{console_log, host_call, WasmHost}; } else { // this code is non-functional, since actors only run in wasm32, // but it reduces compiler errors if you are building a cargo multi-project workspace for non-wasm32