From b5485668025c3e94f8460873c39489bb83e0c86a Mon Sep 17 00:00:00 2001 From: Dimitri Sabadie Date: Wed, 17 Apr 2019 11:35:17 +0200 Subject: [PATCH] Add support for std/no_std num-traits. --- Cargo.toml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d00de1f..aae462b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,13 +22,10 @@ maintenance = { status = "actively-developed" } [features] default = ["std", "impl-cgmath"] serialization = ["serde", "serde_derive"] -std = [] +std = ["num-traits/std"] impl-cgmath = ["cgmath"] impl-nalgebra = ["nalgebra"] -[dependencies] -num-traits = "0.2" - [dependencies.nalgebra] version = ">=0.14, <0.17" optional = true @@ -37,6 +34,10 @@ optional = true version = "0.16" optional = true +[dependencies.num-traits] +num-traits = "0.2" +default-features = false + [dependencies.serde] version = "1" optional = true