-
Notifications
You must be signed in to change notification settings - Fork 6
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
Publish on crates.io? #2
Comments
I'm willing to upload the crates to crates.io, but there would still be an unresolved issues if you want to publish
The CLI section of your project will probably work just fine, but if Therefore you would either need to
I've tried to start upstreaming some of the changes to make this less of a chore, but progress on that end is rather slow. |
Thanks for the thorough answer. That's a very fair and balanced perspective. My hope was, that we could publish the library if we put If that's not a possibility, that leaves us with the options you mention, which, to be honest, both don't very enticing. Wouldn't it be possible, to release new versions of the patched crates? This way, downstream crates like lychee wouldn't have to inherit the patches. You could make this more convenient by setting up some automation around the forks. Maybe if you don't make too many future changes, it might be okay to rebase on top of the upstream crates? I'm pretty sure you already considered that option. Of course, it would be understandable if you don't want to put this burden upon yourself (with little upside). What's your opinion on this? |
I can upload the patched versions of the crates that make For every patched crate that you pull you introduce an incompatibility with every other crate that is expected to work with the unpatched version. Even if they both have some struct This in turn means that, unless the fields of said struct are exposed or you're able to grab and copy the information in another way, this other crate will also need to be patched to accept the And now the cycle continues, since crate This is of course the worst case scenario, but the only proper long-term solution is to push for upstreaming all the changes (at least for |
I see. That's very reasonable. I honestly don't know of a good strategy forward, which wouldn't entail a high maintenance burden. Even so, upstreaming the changes is helpful in and of itself. 👍 |
In lycheeverse/lychee#733 we've been discussing whether
reqwest-impersonate
could be a solution to getting blocked by various websites. After some testing we found that indeed we would be able to circumvent some of the issues thanks to this project.The plan was to integrate
reqwest-impersonate
into lychee as an optional feedback and a fallback to reqwest for hard cases where the server does any browser detection.However to achive this, we would need a publicly available crate. I saw that this project applied some patches to upstream crates and I wonder if you could publish these dependencies as well as
reqwest-impersonate
on crates.io.It's totally understandable if you rather would not want to do this for maintainability reasons. In such case we'd have to find an alternative solution for lychee.
Thanks for this crate in any case.
The text was updated successfully, but these errors were encountered: