-
Notifications
You must be signed in to change notification settings - Fork 349
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
actix-tls v3 uses str_split_once and bumps MSRV to 1.52 #433
Comments
https://doc.rust-lang.org/std/primitive.str.html#method.split_once is marked as stable in 1.52. If you're really needing to stay on 1.51 then I'll consider a PR. |
That's a good point thanks, I haven't tried a 1.52 upgrade (only 1.54 unsuccessfully) I'll do that now and get back to you. I'm not trying to be mysterous or anything, the reason we're stuck on 1.51 is because we're stuck on Rocko version of Yocto build (for reasons I again don't especially want to get into) and meta-rust upgraded past rocko before upgrading to 1.54 (and straight past 1.52). We're working on upgrading our yocto build but given that this was some string helper fuctions it'll be a lot easier to switch out while the big build upgrade is ongoing. If the 1.52 upgrade doesn't work I'll start on a PR thanks, would you prefer just removing the uses of |
Okay unfortunately it's no good, between rust-1.51.0 and rust-1.52.0, the commit of LLVM used was changed from c6f9d6db7b to ea6bb2615f, which changes the minimum version of cmake from 3.4.3 to 3.13.4. Upgrading that would have chain effects and at that point we might as well upgrade the whole OS to a version that supports 1.54 anyway. Additionally while messing around with versions I noticed that |
Just an update on this, sorry to bother you again, but we have upgraded to |
Hi,
For reasons I don't really want to get into, for the time being we're stuck on rust version 1.51. Actix-tls v3 uses
str::split_once
(and actix-http usesstr::rsplit_once
) which bumps the MSRV up to 1.54. For the time being we've downgraded to actix-tls 3.0.0-beta.9 which doesn't do this, which is fine for now.However, given that it's a small helper method, would you be open to a PR that replaces its use, or at least gates it behind some kind of compile flag? Happy to submit it. I realise we have just missed the beta/rc period too, awkward.
Otherwise I guess we'll have to maintain a fork for just those methods.
It is annoying that rust/cargo doesn't currently provide much feedback on this if you're not stuck on an old version yourself, although support is coming: rust-lang/rust#65262
Thanks,
David
The text was updated successfully, but these errors were encountered: