Replace str_split_once to lower actix-tls msrv to 1.50.0 and bump actix-net to 1.50.0 #434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Bug Fix I think?
PR Checklist
Check your PR fulfills the following:
Overview
This PR replaces the use of
str::split_once
, which was stablised in 1.52.0 withstr::splitn
, keeping the MSRV at 1.50.0. This still isn't the 1.46.0 currently mentioned in the readme, due to the use ofbool_to_option
atactix-server/src/server.rs:211
but I haven't gone that far back, I can do if preferred.I could also gate this behind a conditional compilation directive if preferred so that users not stuck 6+ months in the past can use the new methods but also it's just a small string helper method so I don't believe that the additional complexity is worth it myself.
While this lowers the MSRV of
actix-tls
from 1.52.0 to 1.50.0 it raises the MSRV for the rest of the repo from 1.46.0 to 1.50.0 (due to no longer having a bunch of exclusions to the MSRV). I can revert that and keep everything on 1.46.0 if preferred. This wayactix-tls
doesn't have to be excluded from the MSRV requirement. Or I could just leaveactix-server
excluded and the rest of the repo can stay on 1.46.0 I guess.Closes #433