-
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
Add a basic test crate for no_std #140
Conversation
bors r+ |
Build succeeded |
Whoops I missed this PR. You definitely need to build against a target that doesn't have std to properly check for it as no_std crates can depend on std crates (for whatever reason), so you don't know if all your dependencies are properly no_std unless you compile against a target that doesn't even have it. |
Ouch, alright, I though it worked because it failed to compile (duplicate symbols) when I enabled std. Maybe that's not reliable enough. Do you have an example of how to do it in a better way? |
I guess what you have is fine, but I'd additionally also compile it for |
I'm fine with not executing it for now. That's already how it's done here. I will try adding a test for |
141: Also test no_std with a target without std support r=Ogeon a=Ogeon As suggested in #140 (comment). Co-authored-by: Erik Hedvall <erikwhedvall@gmail.com>
It's very bare bones, but will hopefully get the job done.
Closes #139