From f1c6ea9de89085cb71a78cf3d8c26e14b84a1a00 Mon Sep 17 00:00:00 2001 From: Miraculous Owonubi Date: Mon, 22 Aug 2022 17:55:29 +0400 Subject: [PATCH] fix private type visibility --- Cargo.toml | 2 +- src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f25c7a2..df0ed7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,4 @@ schemars = "0.8.8" serde_json = "1" [features] -chunked-entries = [] +__chunked-entries = [] diff --git a/src/lib.rs b/src/lib.rs index 2fbdbf5..c7b8d33 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,9 @@ use std::collections::HashMap; -#[cfg(feature = "chunked-entries")] -mod private; -#[cfg(feature = "chunked-entries")] -pub use private::{AbiCombineError, AbiCombineErrorKind, ChunkedAbiEntry}; +#[doc(hidden)] +#[cfg(feature = "__chunked-entries")] +#[path = "private.rs"] +pub mod __private; use borsh::schema::{BorshSchemaContainer, Declaration, Definition, Fields, VariantName}; use schemars::schema::{RootSchema, Schema};