atanunq / viuer

Rust library for displaying images in the terminal.
MIT License
241 stars 43 forks source link

License issue #37

Open picoHz opened 2 years ago

picoHz commented 2 years ago

This crate depends on ansi_colours, which is licensed under the LGPL-3.0-or-later. I think it's confusing that an MIT-licensed crate has copyleft dependency.

lilithium-hydride commented 2 years ago

I'm not an expert on license compatibility, but this issue seems to be addressed by https://old.reddit.com/r/rust/comments/fevz37/want_to_use_lgpl_licensed_library_do_i_need_to/fjsg393/ and https://opensource.stackexchange.com/questions/10537/mit-license-ok-if-dependent-package-uses-lgpl. If this is still a concern and the project's license were to be changed, it would also need to affect viu, which was the source of this project's code and license choice, and still features the MIT license while depending on this project.

picoHz commented 2 years ago

I don't think there is license incompatibility but using a LGPL library adds some limitations to derived programs so I’m curious if this is intended or not.

stefan-hdt commented 2 years ago

There might be limitations in using the program. That depends whether you can fulfill the license conditions of the LGPL-3.0-or-later. If so, it does not affect the program itself. But you are right. The dependency under LGPL-3.0-or-later requires you to deliver the license text, provide source code etc.