-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Backport the split client conn modules #3053
Comments
I've started looking at this, and I'm not quite sure how to go ahead with this backport: the two versions of the The only way I can see right now is to have both versions of |
Do you mean that the bounds for That way, people can prepare to upgrade by making use of |
Yes, thank you for your quick reply! I'm preparing a POC PR. One thing of note is that I've removed the I've created some smoke tests for the backported API, but I'm not quite familiar with the tests in hyper, I'm open for suggestions of further tests. |
On a second thought, I might have gotten overly eager with the deprecation in this PR, that patch might be better off in another issue that tackles the deprecations relevant to the 1.0 upgrade in a systematic way. |
At the very least, before landing anything into the 0.14.x branch (which I prefer to be always-shippable, in case of needing speedy fixes), should probably come up with the mechanism to opt-in to the backports (as mentioned in #3052): we don't want to make people compile more code than they are using. (I don't mean making the deprecations opt-in, those probably should be on to nudge people to start preparing for an upgrade.) |
I settled for |
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0.
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0.
client::conn::Builder and client:conn:handshake are deprecated as they are removed in 1.0. tower_client is updated so it does not use the deprecated API.
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0.
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0.
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0. Closes #3053 Co-authored-by: KOVACS Tamas <[email protected]>
client::conn::Builder and client:conn:handshake are deprecated as they are removed in 1.0. tower_client is updated so it does not use the deprecated API.
`client::conn::{SendRequest, Connection, Builder, handshake}` are deprecated as they are removed in 1.0. tower_client is updated so it does not use the deprecated API.
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0. Closes hyperium#3053 Co-authored-by: KOVACS Tamas <[email protected]>
In 1.0, we've split
hyper::client::conn::Connection
into per-version types. To ease upgrading (see #3052), we can backport the addition of the two modules,hyper::client::conn::{http1, http2}
. With them in place, we could then add a deprecation tohyper::client::conn::Connection
.I don't think this will be actually be
E-medium
in complexity, as it's not adding something that needs many internal changes. But it's not quite easy, since once the files are copied, there might be some confusing errors over internal types that have been renamed.The text was updated successfully, but these errors were encountered: