-
Notifications
You must be signed in to change notification settings - Fork 231
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
Make pico-args
a binary-only dependency
#686
Conversation
Hm... I remember having issues with making |
I don't know.. maybe the resolver thing helped, as it is related to feature resolution, or something... |
I remembered why:
Unless you have an idea how to avoid it I would have to revert this PR. PS: no, passing |
Only solution I can think of is to split resvg as a library and as a CLI into two different crates, which would be kind of unfortunate I guess.. Not sure if there is another way. |
Sorry, I've been sick. @RazrFalcon. I did not expect this behavior from [features]
default = ["standalone", "pico-args"]
# Necessary features for using resvg as a library
standalone = ["text", "system-fonts", "memmap-fonts", "raster-images"] What do you think? |
Unnecessary complexity. The only solution is to wait for cargo to support binary-dependencies. If it ever happen. |
That's fine. I may write up an issue on cargo, and I've also discovered another cargo limitation that's quite annoying. Can I recommend that you put in the |
I don't like adding thing I don't understand the purpose of. Everything works just fine without |
Upon investigating, your crates uses I've just seen several issues with cryptic error messages, due to using the old resolver. See I'm going to investigate this a bit more... |
Does updating to 2021 would solve the issue? If so, I plan to do this during the next resvg release. We require MSRV 1.65 anyway. |
I think if your crates are "2021" and your workspace doesn't have that explicitly set, then you might get weird issues like the once wgpu, and wgpu-hal received. I regret bringing this up, but if you upgrade editions, you'd probably need |
This library currently includes
pico-args
as a dependency, but this is very much a binary-specific dependencyThus I've made it optional, and added as a feature to the binary.
This will make this library less congested with non-library things.
In addition,
resolver = "2"
was set, as this isn't the case for workspaces,it is the case for crates falling under 2021 editions -- but not workspaces.