From 80ada6b81c3dfd706a4a74de6a406788f6ee5a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Wiedenh=C3=B6ft?= Date: Wed, 16 Jan 2019 09:45:46 +0100 Subject: [PATCH] Add std feature to Cargo manifest This enables use of this crate in environments where std is not available. --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ad67ca2..087ac47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,16 +13,21 @@ readme = "README.md" build = "build.rs" [dependencies] -num-traits = "0.2" proc-macro2 = "0.4.2" quote = "0.6" syn = "0.15" +[dependencies.num-traits] +version = "0.2" +default-features = false + [dev-dependencies] num = "0.2" [features] +default = ["std"] full-syntax = ["syn/full"] +std = ["num-traits/std"] [lib] name = "num_derive"