Skip to content

Crates are published with no licenses (even though repo has license files). #33

@jacob-pa

Description

@jacob-pa

Issue

When you download the individual crates in this repo as a normal dependency using cargo, and then look at them on your local disk in the cargo cache, they have no licenses included. I think this might mean that legally they don't have a license, or at least it's a grey area that seems legally risky!

I came across this as I was writing a compliance tool to scrape all the licenses from cargo dependencies without going to the internet, but it doesn't work for all the crates in this repo.
Cause

The license files are in the repo, but only at the top level of the workspace, not in the individual crates.
Possible Fixes

  • Copy the licenses into the top level of all the individual crates (annoying if you ever make changes due to the duplication).
  • Use the Cargo.toml "include" field to include the files (downside is they will also need to specify all the other things like src etc).
  • Automate with a script so that when publishing the licenses are copied in before publishing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions