Task description
Use the cargo-about crate as lib and not as bin to create the license text for the license command. This may even allow avoiding duplicated license texts (e.g., Apache 2.0) if they have no small differences, such as a copyright header (e.g., in MIT).
reason
With the current approach to install cargo-about binary, building ecformat installs this crate system-wide. Using it as a lib (i.e., as build dependency) allows keeping this installation locally for the project. This could make the build more reliable and avoids problems in special environments (e.g., for Docrs.rs see #28).
Automation (CI/CD)
The change itself is a one-time thing and affects the automatic creation of the license text including all dependencies.
Resources
- Related issues at
cargo-about - Related pull request at
cargo-about: Expose generate function - Documentation of the
generatefunction