-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
Remove clap Dependency From Library #737
Comments
Thank you for your issue! However I'm afraid, there's not much that I can do. This more an issue with |
Making Alternatively, the binary and the library could be split into separate packages. |
I'd be willing to attempt restructuring the project into separate packages and submit a PR if @XAMPPRocky is okay with it. |
Hmm, right now I still don't really the value in splitting the project up, I would think the energy would be better spent trying to push for |
Without restructuring the project, maybe defining the clap dependency as optional and being guarded by a "cli" feature that is enabled by default? Like this when I import tokei I can disable most features and get rid of these unnecessary dependencies like clap? |
This should work, but I think you will have to use the new resolver for that. |
I am, and its becoming default in the next edition coming very soon :) |
When using tokei as a library, you still get
clap
as a dependency.Would be great to only use clap in the binary.
The text was updated successfully, but these errors were encountered: