-
Notifications
You must be signed in to change notification settings - Fork 215
Use vcell v0.1.2 #356
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
Use vcell v0.1.2 #356
Conversation
The `register.rs` file included in the output of svd2rust uses `as_ptr()`, which was only added in vcell v0.1.1 (now yanked). See rust-embedded/svd2rust#484
|
Did you try |
|
Yes & that worked. But code needing a |
|
I dont know enough about cargo / rust idioms to know if this is a bug or a feature, so ill leave this to another reviewer. |
|
I'm happy with it, it just means we'll have to watch a little more closely for the next update because point releases won't go automatically. |
|
Should we wait for svd2rust to update? |
|
Should we maybe switch to a caret requirement to avoid that? Is there any reason why tilde requirements are used? Otherwise I'd switch all the pac dependencies to a caret requirement. I can't think of any way this is wrong, but I have been proven otherwise in the past and will be in the future. This isn't a particularly pressing issue (the offending code is over half a year old and I seem to be the first one with this issue), so I'd rather wait until the |
|
Sure caret seems good. I've always been a little confused by this too. What is the difference between caret, tilde, and just "0.1". Docs here but I'm still not certain https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html |
|
I guess the difference between caret and tilde is caret can only go upwards, but what is the unspecified one? Is it the same as tilde? |
Unspecified is the same as caret |
|
Ok, let's just do unspecified for everything then. I'm not sure why we have tilde, it's only ever caused problems in the past. |
No reason not to do it Since unspecified is the same as caret (and thus more widespread) we use that
|
Done, now let's wait for CI |
|
Maybe should be "^0.1.2", since that one specifies all the digits and we want it to update on patch versions. Sorry I was unclear. |
|
Wait, I'm confused now. "0.1.2" and "^0.1.2" mean the same, there's no difference |
|
Oh. I thought "^0.1.2" was the same as "0.1" but "0.1.2" meant exactly 0.1.2 with no updates. |
|
Haha I should probably know this by now given how many crates I maintain. 😅 |
|
Ping me when svd2rust r+'es |
|
@sajattack The time has come |
|
That was quick. |
The
register.rsfile included in the output of svd2rust usesas_ptr(), which was only added in vcell v0.1.1 (now yanked).See rust-embedded/svd2rust#484 (maybe wait until it's looked at/merged)
This was found while doing #355 with a very old existing clone & running into weird compile errors: