Skip to content

Commit 78fa885

Browse files
committed
Throw compiler error if std feature is not enabled
1 parent 35c5470 commit 78fa885

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/std/src/prelude.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ pub use alloc::string::{String, ToString};
44
pub use alloc::vec;
55
pub use alloc::vec::Vec;
66
pub use core::option::Option::{self, None, Some};
7+
8+
#[cfg(not(feature = "std"))]
9+
core::compile_error!("Please enable `cosmwasm-std`'s `std` feature, as we might move existing functionality to that feature in the future.");

0 commit comments

Comments
 (0)