-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Replacing hyperx
's header parsing
#110
Comments
Thank you for your issue! I'm aware of the incompatibility, however until |
Hi! I'm hitting a similar problem. For my use case at least, it turns out the fix would be quite simple: I'm writing a webhook server, so I'm only using Would you consider splitting this part into an |
I can write a PR, if it's something you'd consider, but don't have any time for right now 😄 |
This has the side benefit of not having to build reqwest and other dependencies when only using the models in some tool |
I don't want to split crates, as that would be extra maintenance. I like to release after every change if possible at the moment.
I'd prefer to provide this as a main benefit to |
That makes sense.
From the headers you mention, it seems like |
I'm in a similar boat here where using octocrab is preventing me from using another crate. Personally, I think that is it better for the Rust ecosystem to have a separate crate with just the models, then But, I understand the point about the extra maintenance. Although I suspect that for a crate that should very rarely change once it's "done" (all current GitHub APIs are supported), the maintenance burden would be negligible. Assuming the crate lived in the same Cargo workspace. Anyway.. The PR that @alarsyo linked looks stale. So I'm not banking on only using Could we simply copy
Downside is a some gunk in the crate, but I think that's better than the crate simply not working for people. |
Someone opened a new PR adding the I understand your frustration, however it's not fair characterisation that incompatibility with a certain framework version is "not working for everyone". Cargo has great support for git dependencies if you need it for your project sooner. |
I'm don't use Rocket so it isn't just Rocket. But I'm very sorry. Instead of "everyone" I should have said "people who have I didn't mean to come off in the way that I did. I was just trying to explain my thought process and make a case for why I thought we should consider vendoring. I'm sorry! |
hyperx
's header parsing
Hi, it also doesn't work when using axum:
Kind of a deal-breaker for me sadly... I hope this can be fixed in the future. Great work btw 👍 |
By the way, inspired by wanting to use |
@jplatte Thank you so much for your work on this! 🙏 I'm happy to wait a little longer, glad we can soon have a implementation that benefits everyone. 🙂 |
I think it might make sense to merge #258 as a temporary solution, the headers PR is progressing at a glacial pace 🥲 |
@jplatte To be honest with you. I've found the situation so frustrating that I think the best solution at the moment is to fork those crates and move on from them. I'm currently on holidays and have a busy work schedule afterwards so there will be no movement for awhile. But right now, my current thought process is that in the next few weeks I will publish a version including the fix to Octocrab, followed another version that replaces all usage of hyperium crates that aren't hyper. I'm tired of dealing with single person maintainers of cornerstone libraries like |
We're hitting this same issue using https://github.com/kube-rs/kube:
|
Same issue using AWS SDK crates, which all rely on aws-http:
|
Sad to see that compile-breaking issues like this are kept open for months. Is there anything planned? Can we help in any way? |
This has been resolved in 0.19.0
I did mention there would be a release in the comment above. As always, the easiest and most effective method of help is to sponsor me on GitHub as it directly affects how much time I can spend on personal projects like Octocrab. https://github.com/sponsors/XAMPPRocky |
Hi,
I am trying to use this crate in my project alongside rocket-rs, only there seems to be an issue with the dependencies
This happens when I have both rocket (latest version as of today) and octocrab
The text was updated successfully, but these errors were encountered: