From 4e11f3cfcd3eaa3b9fcfe7f9df66256ceb03e4ff Mon Sep 17 00:00:00 2001 From: bluss Date: Sat, 12 Oct 2019 22:30:40 +0200 Subject: [PATCH] FEAT: indexmap!() macros require std (Due to using the ::with_capacity method.) --- src/macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index 3b7c83c..6ab0e1e 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -1,4 +1,5 @@ +#[cfg(has_std)] #[macro_export(local_inner_macros)] /// Create an `IndexMap` from a list of key-value pairs /// @@ -37,6 +38,7 @@ macro_rules! indexmap { }; } +#[cfg(has_std)] #[macro_export(local_inner_macros)] /// Create an `IndexSet` from a list of values ///