-
Notifications
You must be signed in to change notification settings - Fork 60
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
Clarify that libm
is needed for no_std
#415
Comments
Hi! Many floating point functions need a library implementation and that's usually provided by [dependencies.palette]
version = "0.7.6"
default-features = false
features = ["libm"] # Uses libm instead of std for floating point math The corresponding argument to |
Thanks, that fixed it. I think the fact that |
I suppose it could be added to the getting started part of the crate root docs too. 🤔 Was that where you were looking? |
Yes. I also looked in the list of features to see if there was a no_std feature. |
I see, thanks. A |
no_std
libm
is needed for no_std
I'd love a "crate features" section in the docs! |
Absolutely, that's also a possible improvement. |
There are tons of errors when trying to build
palette
with--no-default-features
.How To Reproduce
cargo 1.82.0-nightly (2f738d617 2024-08-13)
andcargo 1.80.1 (376290515 2024-07-16)
cd palette
cargo b --no-default-features
Expected Outcome
Builds without errors
Actual Outcome
32 errors. Here is one of them:
Additional Details
I am trying to use palette on the
thumbv6m-none-eabi
target. I am trying to use palette to control the onboard RGB LED on a RP2040 Zero.cargo 1.82.0-nightly (2f738d617 2024-08-13)
andcargo 1.80.1 (376290515 2024-07-16)
x86_64-unknown-linux-gnu
andthumbv6m-none-eabi
The text was updated successfully, but these errors were encountered: