cargo-lichking icon indicating copy to clipboard operation
cargo-lichking copied to clipboard

Command to list copyright holders/summary printout

Open xd009642 opened this issue 6 years ago • 2 comments

So as well as the license text for my companies own compliance we have to have a section beforehand with the list of dependencies and the copyright holders. I'm aware this may be slightly more niche so as an alternative I'm sure a lot more people could benefit from a summary of the project name, license, copyright-holder without the full license text.

Come to think of it exporting to some form of output like xml (or something nicer) with all the fields (including full license text) would make it easy to automatically generate any documents required by different companies compliance departments.

Also, super impressed with the ease of cargo-lichking. The comparative process for python and C++ projects was painful to say the least :)

xd009642 avatar Dec 05 '19 23:12 xd009642

By copyright holder I presume you mean the actual copyright holders, not just the authors listed in the crate metadata or license files that have them?

That would be significantly more complicated, the only really machine-readable source is probably the repository history, so would require parsing the package.repository field, downloading the repo (which may not be exactly at the url in the field) and getting a list of authors from that. Luckily the Rust ecosystem is very git-centric so supporting git only would probably get 99% of dependencies working.

Nemo157 avatar Dec 06 '19 09:12 Nemo157

I was just thinking in the license files that have them or crate metadata as getting it from the repository history could be a massive pain. Both would be useful to different people I imagine

xd009642 avatar Dec 06 '19 09:12 xd009642