From baded5a6f2b63c3095d9e7431ea6686beb8e556f Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 9 Sep 2020 17:32:38 +1200 Subject: [PATCH 1/3] 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", +] From 8cd1b01cb51ccf6195e9e5cc3f9fb9cc2c75e6d3 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 9 Sep 2020 20:41:38 +1200 Subject: [PATCH 2/3] Update Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Köcher --- Cargo.toml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 65473cc..94da88e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,3 @@ license = "Apache-2.0/MIT" [dependencies] num-traits = { version = "0.2", default-features = false } - -[features] -default = ["std"] -std = [ - "num-traits/std", -] From e6f8f33c739d9e390f47cb58ba850c7cbfa4ef31 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Wed, 9 Sep 2020 20:42:00 +1200 Subject: [PATCH 3/3] Update Cargo.toml --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 94da88e..50c0c44 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "integer-sqrt" description = """ An implementation of integer square root algorithm for primitive rust types""" -version = "0.1.4" +version = "0.1.5" authors = ["Richard Dodd ", "Joseph Richey", "Sergei Shulepov"] include = ["src/**/*.rs", "Cargo.toml"] repository = "https://github.com/derekdreery/integer-sqrt-rs"