From 02e9ac4cad2288060586229bfcc53b268161ee29 Mon Sep 17 00:00:00 2001 From: Geordon Worley Date: Sat, 10 Jul 2021 18:32:36 -0500 Subject: [PATCH] import macros from alloc to solve issues with missing format! macro, among other issues --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d11c9bcc..c5c4dcd8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,7 +87,6 @@ an optimized set of tools for computer graphics and physics. Those features incl html_root_url = "https://docs.rs/nalgebra/0.25.0" )] #![cfg_attr(not(feature = "std"), no_std)] -#![cfg_attr(all(feature = "alloc", not(feature = "std")), feature(alloc))] #![cfg_attr(feature = "no_unsound_assume_init", allow(unreachable_code))] #[cfg(feature = "rand-no-std")] @@ -102,6 +101,7 @@ extern crate approx; extern crate num_traits as num; #[cfg(all(feature = "alloc", not(feature = "std")))] +#[cfg_attr(test, macro_use)] extern crate alloc; #[cfg(not(feature = "std"))]