Skip to content

License Notice Generation as a Library #272

@KOBA789

Description

@KOBA789

Is your feature request related to a problem? Please describe.
Our crate, notalawyer-build, uses cargo-about to generate license notices at build time.
However, because it uses cargo-about as an executable, we face challenges with version management and build reliability. Since we can't manage this dependency through Cargo.toml, relying on an external binary can sometimes cause build failures when the required configuration files are missing.

Describe the solution you'd like
We propose refactoring the core license notice generation logic into the lib part of cargo-about. This change would allow projects like notalawyer-build to integrate the functionality directly, manage the dependency through Cargo.toml, and avoid issues related to invoking an external binary during the build process.

Describe alternatives you've considered
While continuing to use the binary as-is is an option, it has proven problematic in certain build environments.

Additional context
An example of the way to use notalawyer-build is here:
https://github.com/arkedge/kble/blob/5193b6d6c5e5d1e8b1a1c7523bf51ec414174609/kble/build.rs#L4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions