From a463143608ce79503ff726014ef76dad30ab4f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 21 Nov 2021 20:57:02 +0100 Subject: [PATCH 1/3] Add nalgebra-glm to the no-std CI build --- .github/workflows/nalgebra-ci-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nalgebra-ci-build.yml b/.github/workflows/nalgebra-ci-build.yml index fd3ec273..dd8d23bb 100644 --- a/.github/workflows/nalgebra-ci-build.yml +++ b/.github/workflows/nalgebra-ci-build.yml @@ -106,3 +106,7 @@ jobs: run: xargo build --verbose --no-default-features --features alloc --target=x86_64-unknown-linux-gnu; - name: build thumbv7em-none-eabihf run: xargo build --verbose --no-default-features --target=thumbv7em-none-eabihf; + - name: build x86_64-unknown-linux-gnu nalgebra-glm + run: xargo build --verbose --no-default-features -p nalgebra-glm --target=x86_64-unknown-linux-gnu; + - name: build thumbv7em-none-eabihf nalgebra-glm + run: xargo build --verbose --no-default-features -p nalgebra-glm --target=thumbv7em-none-eabihf; From a35918b61303b31be51f2e5fd241ddd308f62152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 21 Nov 2021 21:11:55 +0100 Subject: [PATCH 2/3] nalgebra-glm: fix no-std build --- nalgebra-glm/src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nalgebra-glm/src/traits.rs b/nalgebra-glm/src/traits.rs index a09a95f2..8619e59d 100644 --- a/nalgebra-glm/src/traits.rs +++ b/nalgebra-glm/src/traits.rs @@ -3,7 +3,7 @@ use num::{Bounded, Signed}; use na::Scalar; use simba::scalar::{ClosedAdd, ClosedMul, ClosedSub, RealField}; -use std::cmp::PartialOrd; +use core::cmp::PartialOrd; /// A number that can either be an integer or a float. pub trait Number: From 8c2bdf51f2f61fa5d4c084967946cc4f53d58f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 21 Nov 2021 21:21:22 +0100 Subject: [PATCH 3/3] Run cargo fmt --- nalgebra-glm/src/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nalgebra-glm/src/traits.rs b/nalgebra-glm/src/traits.rs index 8619e59d..ccdb4a02 100644 --- a/nalgebra-glm/src/traits.rs +++ b/nalgebra-glm/src/traits.rs @@ -1,9 +1,9 @@ use approx::AbsDiffEq; use num::{Bounded, Signed}; +use core::cmp::PartialOrd; use na::Scalar; use simba::scalar::{ClosedAdd, ClosedMul, ClosedSub, RealField}; -use core::cmp::PartialOrd; /// A number that can either be an integer or a float. pub trait Number: