Allow to disable std feature

This commit is contained in:
Xiliang Chen 2020-09-09 17:32:38 +12:00 committed by GitHub
parent 8bfb983bac
commit baded5a6f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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",
]