diff --git a/substrate/frame/src/lib.rs b/substrate/frame/src/lib.rs index a385bbcb5a48..0e41f77d6bee 100644 --- a/substrate/frame/src/lib.rs +++ b/substrate/frame/src/lib.rs @@ -551,7 +551,10 @@ pub mod account { pub mod block { pub use frame_support::ConsensusEngineId; pub use frame_system::limits; - pub use sp_runtime::{generic::DigestItem, testing::Header as HeaderTest, traits::Header}; + pub use sp_runtime::{generic::DigestItem, traits::Header}; + + #[cfg(feature = "std")] + pub use sp_runtime::testing::Header as HeaderTest; } /// Access to all of the dependencies of this crate. In case the prelude re-exports are not enough,