-
Notifications
You must be signed in to change notification settings - Fork 109
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
race
module cannot be used on targets without atomics
#136
Comments
Good catch! I think the right solution here would be to add cfg(target_has_atomic_usize) or some other built-in cfg like that. Would you be up to sending a PR? If not, I’ll try to get to this tomorrow. |
Oh, how unfortunate: the cfg attribute I am thinking about is unstable: rust-lang/rust#32976 (comment) I guess, we need to add a Also, this is not the first time I am bitten in the back by “compiles on my machine”. I wish the language had better sorry here. |
Is this considered a backwards-compat change according to semver? Also, FWIW, Anyways, I could try to do the PR myself.
|
I'm abusing the fact that https://github.com/vorner/signal-hook/blob/master/.github/workflows/test.yaml#L183 Not sure if it would help here, but feel free to borrow any part of that. |
I think its' backward-compatible enough :) This is a new API addition, so I wouldn't mind breaking it in edge cases. |
@vorner I like your idea, and tried incorporating it into GHA myself. Unfortunately, I literally just started learning GHA yesterday, and I ran into two (related) snags, that make me unsure how to add
Anyways, I added a minimal fix for now. |
As of
v1.6.0
, therace
module became stable. I've been usingonce_cell
in my msp430 code sincev1.2.0
without issue. Unfortunately, since the release ofv1.6.0
, I've been unable to compile the module:Is it possible to gate the
race
module behind a feature so than I can continue to useonce_cell
on a target without atomics, or would this be considered a semver breaking change?The text was updated successfully, but these errors were encountered: