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

please include LICENSE-* files in all published crates #600

Closed
decathorpe opened this issue Apr 8, 2021 · 2 comments · Fixed by #855
Closed

please include LICENSE-* files in all published crates #600

decathorpe opened this issue Apr 8, 2021 · 2 comments · Fixed by #855

Comments

@decathorpe
Copy link

The Apache-2.0 and MIT License terms require that the license text is made available with any redistributed sources, which also means that the LICENSE-* files should be included in crates published to crates.io.

To have "cargo publish" pick the files up, adding symlinks LICENSE-MIT → ../LICENSE-MIT and LICENSE-APACHE → ../LICENSE-APACHE in each of the workspace member directories (at least those that are actually published) is enough, if you're running "cargo publish" from Linux or mac OS (Windows does not really support symlinks, so there actual copies of the files are necessary).

@Pat-Lafon
Copy link
Contributor

Does license.workspace = true solve this?

@decathorpe
Copy link
Author

No, that only makes the crate inherit the license in crate metadata, but not the license files themselves.

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

Successfully merging a pull request may close this issue.

2 participants