-
Notifications
You must be signed in to change notification settings - Fork 34
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
built
may panic when run in no-std environments
#59
Comments
CARGO_CFG_TARGET_FAMILY
may not be present during build timebuilt
may panic when run in no-std environments
Thanks for the heads-up. I'm not overly familiar with no-std-environment. To make this reproducible: The main crate is |
Yeah, you can reference Booster's repo, where the
Yep, very standard
Correct, sorry I meant to say 0.6.1 |
Printing out all of the env vars during the build proicess yields the following:
Based on this, it looks like |
This is indeed a simple bug in |
Thanks! I was thinking myself of opening an issue in cargo to ask about the environment variable because I was equally confused when reading the docs. No rush on my end, I just wanted to give you a heads up. :) |
@ryan-summers latest git should work for you again?! Upstream seems to remain unresolved wrt what the correct behavior actually is. |
The latest git hash indeed works now, thanks! :) |
@ryan-summers Thanks for checking, bumped to 0.7.1. |
For no-std targets that use
built
(i.e. /~https://github.com/quartiq/booster), theCARGO_CFG_TARGET_FAMILY
environment variable may not be set by cargo. This is causingbuilt
v0.7.0 to fail to build due to a key error:I think this variable should be treated as an
Option
instead. This was never an issue in v0.6.1The text was updated successfully, but these errors were encountered: