From baded5a6f2b63c3095d9e7431ea6686beb8e556f Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 9 Sep 2020 17:32:38 +1200 Subject: [PATCH] Allow to disable std feature --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c7cce52..65473cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,4 +12,10 @@ categories = ["algorithms", "no-std"] license = "Apache-2.0/MIT" [dependencies] -num-traits = "0.2" +num-traits = { version = "0.2", default-features = false } + +[features] +default = ["std"] +std = [ + "num-traits/std", +]