-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matrixcompare uses num_traits::Float without std #3
Comments
Hi @0ncorhynchus, thanks for figuring this out! I'm sorry I didn't get back to you sooner, I don't recall having being notified of this issue, so I unfortunately missed it. I will take a look at your PR now and publish an updated release shortly! |
This prevents issue #3 from re-occurring.
In addition to merging your PR, I added the compilation of a "hello world" crate (basically your example) to the CI, to prevent future regressions. Thanks again for notifying me of the issue! (For some reason, notifications were not enabled on this repo for me, which is why I did not notice your issue before now. In the future, I should hopefully receive notifications in a timely manner.) |
Don't worry about it 😃 |
This is a bug report.
I tried to use
matrixcompare
as a dependency with a tiny sampleCargo.toml
shown as the below:However,
cargo check
failed with the message like:This is caused by that
matrixcompare
usesnum_traits::Float
without thestd
feature ofnum-traits
.I found out from
Cargo.toml
of this crate that it is expected behavior to usenum-traits
without thestd
feature.matrixcompare/Cargo.toml
Line 13 in 8fa1ad3
On the other hand,
num-traits
doesn't exportFloat
withoutstd
orlibm
features.So,
matrixcompare
tries to usenum_traits::Float
, which is not exported.By the way,
matrixcompare
is successfully built on the CI now. This is due to the bug ofcargo
.matrixcompare
usesproptest
as a dev-dependency. (and it usesnum-traits
with the default features includingstd
!)This is the reason that
cargo
usesnum-traits
with thestd
feature when buildingmatrixcompare
as a root crate.At the last, when I tried to build
matrixcompare
with the nightly version ofcargo
, building failed:The text was updated successfully, but these errors were encountered: