From b5d620b3b3643d9e4e032a07f89386e1f276d491 Mon Sep 17 00:00:00 2001 From: sunny-g Date: Wed, 16 Mar 2022 14:44:39 -0500 Subject: [PATCH] try fix --- borsh/src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/borsh/src/lib.rs b/borsh/src/lib.rs index 6a13270d4..0bc3f2728 100644 --- a/borsh/src/lib.rs +++ b/borsh/src/lib.rs @@ -21,7 +21,10 @@ pub use ser::BorshSerialize; /// module. #[cfg(feature = "std")] pub mod maybestd { - pub use std::{borrow, boxed, collections, format, io, rc, string, sync, vec}; + pub use std::{borrow, boxed, collections, format, io, string, vec}; + + #[cfg(feature = "rc")] + pub use std::{rc, sync}; } #[cfg(not(feature = "std"))] @@ -29,7 +32,10 @@ mod nostd_io; #[cfg(not(feature = "std"))] pub mod maybestd { - pub use alloc::{borrow, boxed, format, rc, string, sync, vec}; + pub use alloc::{borrow, boxed, format, string, vec}; + + #[cfg(feature = "rc")] + pub use alloc::{rc, sync}; pub mod collections { pub use alloc::collections::{BTreeMap, BTreeSet, BinaryHeap, LinkedList, VecDeque};