Skip to content

Commit

Permalink
Merge pull request #944 from vadixidav/dev
Browse files Browse the repository at this point in the history
import macros from alloc
  • Loading branch information
sebcrozet committed Jul 11, 2021
2 parents b007e19 + 02e9ac4 commit c320988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -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")]
Expand All @@ -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"))]
Expand Down

0 comments on commit c320988

Please sign in to comment.