Skip to content

Commit

Permalink
Make libm optional in a std environment (#524)
Browse files Browse the repository at this point in the history
Co-authored-by: Björn Antonsson <[email protected]>
  • Loading branch information
matthew-russo and bantonsson authored Sep 23, 2024
1 parent 342adfc commit 9d0da91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proptest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9d0da91

Please sign in to comment.