From 9d0da91ba1562444ad6af52c763d995cff902139 Mon Sep 17 00:00:00 2001 From: Matthew Russo Date: Sun, 22 Sep 2024 19:29:41 -0700 Subject: [PATCH] Make libm optional in a std environment (#524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Antonsson --- 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