-
Notifications
You must be signed in to change notification settings - Fork 95
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
Feature naming is likely to cause confusion #170
Comments
Another option would be to switch to using the
|
Thanks, I think switching to the new syntax would be most appropriate. Any chance you'd be able to open a PR? |
Ah, I just realized you have a MSRV of 1.38: https://github.com/mvdnes/spin-rs/blob/master/Cargo.toml#L13 the |
Ah, that's a shame. Our MSRV is quite important to us: That said, we don't yet have a particular MSRV policy and 1.60 was almost 3 years ago now, so perhaps a bump is fine, with a minor version change. I'd appreciate a PR! |
PR opened! By the way:
When you say "quirky embedded environments", do you mean embedded linux or other similar "with an OS" sort of targets, or bare metal targets? Because we've actually generally been advising AGAINST using spin-rs on bare metal systems, because spinlocks and interrupts don't work well together, if you have a lock held in non-interrupt context, and attempt to lock in interrupt context, then the interrupt can never make forward progress and will deadlock. If you mean systems like armv5te which have linux but no atomics, then feel free to disregard! Embedded is a very nebulous term :) |
Thanks!
I'm talking about single-core systems, yes. |
We had someone in embedded trip over the fact that:
portable-atomic
is an optional depportable_atomic
-
or_
and are unifiedportable-atomic
as the feature, you don't get a warning because the feature does something, but not what you expect (it still tries to use core::sync::atomic).An example of the cfg is here: https://github.com/mvdnes/spin-rs/blob/master/src/lib.rs#L66-L67
The user had this in their Cargo.toml:
You might want to add a "trap" for this in spin that will save someone needing to debug this in the future:
The text was updated successfully, but these errors were encountered: