-
Notifications
You must be signed in to change notification settings - Fork 32
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
Crate is not actually no_std
#20
Comments
In case it helps, the minimum versions of vek's dependencies that are
However, on review of the source of the dependencies, a lot of the functionality |
Thanks for the detailed bug report and suggestions! I very much appreciate it. Turns out I was wrong to assume that just putting I'll give it a shot right now. About this part :
This is probably true of |
As an aside, it would be great if rustc would generate warnings or errors for this. I wonder how many crates are in a similar situation and if this has been discussed with the Rust devs; but well let's do one thing at a time. |
The actual issue is here: rust-num/num-traits#75 To me, the true fix is to unconditionally define EDIT: For posterity, Math support in core |
I've opened a PR on That would mean, on |
The PR was merged, but we still need to wait for a new version of |
This is now ready. I have a branch with the changes for vek. I'll open a PR soon. |
Despite the assertion in the docs, the
vek
crate at 0.9.6 does not actually build on targets withoutstd
available, because of a transitive dependency onstd
through theapprox
crate.Steps to reproduce:
Ensure that the
thumbv7em-none-eabihf
target is installed:Clone and build:
$ git clone https://github.com/yoanlcq/vek.git $ cd vek $ cargo build --target thumbv7em-none-eabihf
Expected results
Crate builds.
Actual results
Likely fix
approx
,num-traits
,num-integer
all need to be set todefault-features = false
. Unfortunately, the version ofnum-integer
(at least) that's pinned here isn'tno_std
compatible, so this probably never worked. Upgrading to at least 0.1.36 should fix it.Also, consider adding a no-std target to your continuous build to catch regressions here.
thumbv7em-none-eabihf
is a supported target on stable and nightly and would be a reasonable choice, but in general, any target with-none-
in the triple instead of e.g.-linux-
should do.The text was updated successfully, but these errors were encountered: