Hacker News new | ask | show | jobs
by coldpie 2192 days ago
I'm about to ship my first Rust project for a client that actually cares about licensing stuff. It's trivial to add a new line to Cargo.toml, but can you legally redistribute it? What MIT-style copyright lines do I need to ship in our License file? Well, let's list the project dependencies and find out how many packages I need to go examine:

    $ ~/.cargo/bin/cargo-tree tree --no-indent | cut -f1 -d' ' | sort | uniq | wc -l
    61
Oi. I'm not sure this language dependency management thing is such a good idea.
3 comments

That looks fantastic, thank you.
I'm working on a crate that'll build a String satisfying all the license requirements of a Cargo project's dependencies – you should be able to put that in a build script, include_str!() the file that the build script spits out, then display that string in the About box (like the convention of Windows Forms programs).

Of course, if anybody knows of an existing crate that does that, it'd save me the effort.

For a more polyglot license grep thing, I built https://github.com/akx/license-grep once upon a time. :)