diff --git a/datacake-rpc/src/lib.rs b/datacake-rpc/src/lib.rs index e98ed26..aae7b6e 100644 --- a/datacake-rpc/src/lib.rs +++ b/datacake-rpc/src/lib.rs @@ -123,7 +123,7 @@ pub use self::net::{ Status, }; pub use self::request::{Request, RequestContents}; -pub use self::rkyv_tooling::{DataView, InvalidView}; +pub use self::rkyv_tooling::{to_view_bytes, DataView, InvalidView}; pub use self::server::Server; pub(crate) fn hash(v: &H) -> u64 { diff --git a/datacake-rpc/src/rkyv_tooling/view.rs b/datacake-rpc/src/rkyv_tooling/view.rs index 807183b..4ee04de 100644 --- a/datacake-rpc/src/rkyv_tooling/view.rs +++ b/datacake-rpc/src/rkyv_tooling/view.rs @@ -35,7 +35,7 @@ where T::Archived: 'static, { /// Creates a new view using a provided buffer. - pub(crate) fn using(data: AlignedVec) -> Result { + pub fn using(data: AlignedVec) -> Result { // SAFETY: // This is safe as we own the data and keep it apart // of the view itself.