-
Notifications
You must be signed in to change notification settings - Fork 285
Consider replacing http-types crate with http crate #1644
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
Comments
For extra context, the @heaths Hope you don't mind the ping, I think this is somewhat important as the current state of affair raises clear red flags for anybody who reviews their dependency trees. |
I'd consider a PR, but there'll be a lot of changes coming up. We're planning to reduce dependencies as much as possible and practical and, IMO, pulling a crate just for a few simple types isn't worth the extra risk and build time. All that work is happening in a separate feature branch which we'll talk about in the not-so-distant future more. So whether you want to spend the time on a PR or not is up to you. As long as it isn't huge I'm happy to review, but it's not a high priority for me. That said, this code - these crates - will be community-maintained (including me, since this was always unofficial) for the foreseeable future so it may be good to remove a dead dependency as you suggest. |
Two years ago, I took us the other way. We were removing the cc @yoshuawuyts |
I appreciate that Rust, like JS, is a smattering of smaller crates comprising libraries; however, while we've always preferred first-party or even no dependencies, the "recent" events - not just I've looked through the other issue and PR you mentioned, but I don't understand in what scenarios compatibility with http-types is necessary (based on this comment). @cataggar care to elaborate? |
Gentle ping on this |
This is not currently a priority. The issue is left open as a tracking issue because I do want to get to this eventually, but we're trying to get our first betas out built on the new TypeSpec code emitter like all our other languages use (for their respective languages). I'd rather remove the dependency on From the OP,
All code in |
To summarize my read down the rabbit hole of comments e.g., #849 (comment), the gist is that we prefer |
👋 Would you consider removing the dependency on |
Resolves Azure#1644 and replaces Azure#2233. The latter PR was a good attempt but we decided internally we don't want to take a dependency on a different crate - `http` ; though, we do have a transitive dependency on it already - for something so simple. This starts as a copy from http_types with appropriate attribution. We may want to remove a bunch of Methods we don't need, though, at some point.
Resolves Azure#1644 and replaces Azure#2233. The latter PR was a good attempt but we decided internally we don't want to take a dependency on a different crate - `http` ; though, we do have a transitive dependency on it already - for something so simple. This starts as a copy from http_types with appropriate attribution. We may want to remove a bunch of Methods we don't need, though, at some point.
Thank you for working on this! Do you plan to release a version that includes this refactoring anytime soon? |
Our normal release cycle for Azure SDKs is the first full week of the month. We should be releasing a new beta then. |
One follow up here, do plan to release a new version for: (since they still depend on the azure_core 0.21.0) |
Those are not the correct crates. The Storage team decided to rename it to |
@pront Hi Pavlos, here is the current, in-development Azure Storage Blob client library crate: https://crates.io/crates/azure_storage_blob Please note that not all features may be implemented or work as intended currently. Thanks! |
Interesting, this is what we depend on today: Do we have to replace the storage ones with https://crates.io/crates/azure_storage_blob? Let me know if anything else stands out. |
Uh oh!
There was an error while loading. Please reload this page.
Hey, I noticed you are using the unmaintained
http-types
crate for a little bit of codegen, plus itsStatusCode
andMethod
types. This is a tiny fraction of the functionality it includes, especially if you consider all of its dependencies.There is a much more minimal crate for HTTP types that is actively maintained and seems like it should fulfill all of your needs: https://crates.io/crates/http. Would you consider switching to it? It would of course be a breaking change. I might be able to post a PR if you're interested.
The text was updated successfully, but these errors were encountered: