From 9a8fdfa3af14bb275ac94d851c29f2ede14bdc8b 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 | 12 ++++++------ 2 files changed, 7 insertions(+), 7 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..781adb6 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}; @@ -24,8 +24,8 @@ pub struct AbiRoot { } impl AbiRoot { - #[cfg(feature = "chunked-entries")] - pub fn new(metadata: AbiMetadata, versioned_abi: ChunkedAbiEntry) -> AbiRoot { + #[cfg(feature = "__chunked-entries")] + pub fn new(metadata: AbiMetadata, versioned_abi: __private::ChunkedAbiEntry) -> AbiRoot { AbiRoot { abi_schema_version: versioned_abi.abi_schema_version, metadata,