Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to allow licenses for specific packages? #53

Closed
iliana opened this issue Dec 10, 2019 · 2 comments · Fixed by #70
Closed

Is there a way to allow licenses for specific packages? #53

iliana opened this issue Dec 10, 2019 · 2 comments · Fixed by #70
Assignees
Labels
enhancement New feature or request

Comments

@iliana
Copy link

iliana commented Dec 10, 2019

For some licenses we prefer to restrict allowing them to specific packages. In cargo-deny v0.2 we did this with skip, along the lines of:

[[licenses.skip]]
name = "copyless"
licenses = ["MPL-2.0"]

I can't seem to find a way to do this in v0.4; clarifications seem to be for changing what the detected license is.

(I accidentally hit enter while typing the issue title, sorry for the initial content that was just the issue template)

@Jake-Shadle
Copy link
Member

No, the licenses skip was removed because it was a really tedious to configure. I guess we haven't felt the need to do per crate licenses because I'm not sure what the meaningful distinction is between allowing a particular license for only one crate versus potentially any crate, except maybe in the case of a crate or set of crates that are dynamically rather than statically linked, since some licenses have exceptions for that.

We do have a couple of licenses that are used in only 1 or 2 crates, is the worry that by allowing the license just for those couple of cases that a future crate that also uses that license will slip through?

@iliana
Copy link
Author

iliana commented Dec 10, 2019

is the worry that by allowing the license just for those couple of cases that a future crate that also uses that license will slip through?

Precisely :)

It is indeed tedious to configure, but I tend to only use it for the exceptions to the usual rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants