-
Notifications
You must be signed in to change notification settings - Fork 53
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
Building no_std fails, even without any features #39
Comments
Hmm, that is interesting. The log crate itself suggests that it should be
However, it seems that the argument |
You should be able to remove all debug stuff from a binary by using |
Well, this is interesting. Apparently it's not your fault, and it's not the log crate's fault, but it's because of the log crate pulled in as a dev dependency that requires the standard library. I will close this, and consider a CI improvement PR in the future. |
The README implies that a
#![no_std]
build should work if all the default features are disabled. There is even abuild-nostd.sh
in the repository.However, I notice that script does not actually remove the standard library from the dependency tree. When I actually do that -- by compiling for an embedded target without a libstd -- it fails:
It seems that even if this crate is
#![no_std]
, itslog
crate dependency is not.This crate seems necessary for a ton of
debug!(...)
prints and other things scattered throughout the code. It was added in da76625, way back in 2017 (!) and looks rather difficult to remove.I can hack around this myself, for my own purposes. But is there some possible upstream solution? If so, I would happily open a PR to add a CI job which builds and runs a really-no-kidding
#![no_std]
binary to prevent this from happening again.The text was updated successfully, but these errors were encountered: