sstadick / cargo-bundle-licenses

Generate a THIRDPARTY file with all licenses in a cargo project.
Apache License 2.0
86 stars 6 forks source link

Make it possible to disable dependencies only used by the binary #9

Closed Skgland closed 2 years ago

Skgland commented 2 years ago

Adds a feature required by the binary to enable the dependencies only used by it. The feature is set as a default feature so it does not need to be specified explicitly when building the binary. When using the lib one would probably want to disable default features to remove the unnecessary dependencies.

An alternative would be to spilt the project into two packages one with the library and one with the binary to specify the dependencies independently, though that would require more churn.

sstadick commented 2 years ago

Thanks for making the issue, and sorry for the slow response. This seems pretty reasonable to me. Thanks for taking the time to make it easy to merge with no changes on my end 👍