-
Notifications
You must be signed in to change notification settings - Fork 256
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
unresolved import std::sync::atomic::AtomicUsize
in no_std environment
#526
Comments
@mutantbob you might have to add the target to the build script: Lines 24 to 42 in 63d7747
IIRC if it's added their it should build, build you'll only have access to |
i think there's an underlying issue here expecting it seems like the best way to solve this would be to attempt to ask rustc for the Target object (via |
Ideally we'd use |
ahh how nice that'll be! fyi there's similar logic in heapless that might serve as a point of reference for some missing options. have y'all considered gating the atomics with a feature and inverting this logic so it is still possible to disable em if reqired? introducing such would be breaking for anyone using |
I think we should be able to close this one once #552 lands, right? |
Yes, I've confirmed that #552 resolves this |
Closing as resolved based on #526 (comment). |
I am trying to port an app to an atmega2560 (
avr
architecture).The
embedded-svc
crate useslog
with this clauseThis should make the log crate no_std
However, I still get the following compile error:
Shouldn't a no_std build avoid pulling things from std? Other crates use the
atomic-polyfill
crate in this situation. Maybe switching tocore::sync
would work, but I'm not sure which version of rust stabilized that.The text was updated successfully, but these errors were encountered: