-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Redefine StatusCode in Reqwest #122
Comments
This would be unfortunate for my use case as I described in hyperium/hyper#894. I am hoping for types that represent the building blocks of HTTP to exist in a crate without a full client implementation. I'm also not sure I understand how |
We all want an For your second question, it's exactly as it sounds. hyper would of course have a StatusCode, but be unstable. Reqwest would never expose it, only showing its own. |
Blocked on Rust 1.20, as we want associated constants instead of enum variants. |
Wouldn't this also mean that reqwest would be stuck with its own even after a hypothetical Though I wouldn't be against a 2.0 at that point either. It would theoretically be source compatible, but everything would still need to agree on the same major version number. |
If the types don't change at all during the |
I guess Cargo would have issues bridging the types even if two minor versions of reqwest found each other from different crate transitive dependencies anyways, so there's no difference then between a minor or major bump. |
Rust 1.20 is stable now. I would like to help. What should be done? |
I received some comments from a few on the rust libs team that reqwest should just use the types from the |
Right now |
No, this wouldn't require a new version of hyper. Eventually hyper will use |
There is now the |
From hyperium/hyper#1196, hyper still has a way to go to become stable, and after discussing trying to stabilize a smaller crate of types, it seems like the best action is to define the type in Reqwest, and in the future use the types from some
http
crate. This allows us to move Reqwest along, without trying to rush stabilizing anhttp
crate without exploration.The text was updated successfully, but these errors were encountered: