From a31b3db6009c03de820923467755ab839da4abe6 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Sat, 29 Dec 2018 12:26:04 +0100 Subject: [PATCH] Make nalgebra-glm compatible with no_std. --- nalgebra-glm/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nalgebra-glm/src/lib.rs b/nalgebra-glm/src/lib.rs index 71ffc251..9fd33445 100644 --- a/nalgebra-glm/src/lib.rs +++ b/nalgebra-glm/src/lib.rs @@ -110,6 +110,8 @@ and keep in mind it is possible to convert, e.g., an `Isometry3` to a `Mat4` and vice-versa (see the [conversions section](#conversions)). */ +#![cfg_attr(not(feature = "std"), no_std)] + extern crate num_traits as num; #[macro_use] extern crate approx;