From 69c25f00aed0e58f6cd8b9a141ab2861f889dc72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Antonsson?= Date: Mon, 26 Aug 2024 13:10:08 +0200 Subject: [PATCH] Make libm optional in a std environment --- proptest/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proptest/Cargo.toml b/proptest/Cargo.toml index 5c72e108..467abde6 100644 --- a/proptest/Cargo.toml +++ b/proptest/Cargo.toml @@ -32,6 +32,9 @@ unstable = [] std = ["rand/std", "lazy_static", "regex-syntax", "num-traits/std"] +# std or libm required for mul_add. +no_std = ["num-traits/libm"] + # For use in no_std environments with access to an allocator #alloc = ["hashmap_core"] alloc = [] @@ -72,8 +75,6 @@ optional = true [dependencies.num-traits] version = "0.2.15" default-features = false -# std or libm required for mul_add. -features = ["libm"] [dependencies.regex-syntax] # If you change this, make sure to also bump the `regex` dependency to a