regex-syntax: Does the Unicode license need to be reflected in Cargo.toml metadata? #933
Replies: 3 comments 4 replies
-
My answer in the bstr issue remains my answer, as nothing has changed that I'm aware of: BurntSushi/bstr#129 (comment) |
Beta Was this translation helpful? Give feedback.
-
I wonder, does the "package.license" key in Cargo.toml needs to reflect the license of the entirety of a crate's contents? You could probably argue both ways, but as far as I understand it, if the crate's source code has portions that are licensed under the terms of the Unicode license agreement, you can't get around adding it to the crate's license specifier. Coming from a linux distribution packaging background myself, that's the way package licenses are treated: They need to reflect all contents of the package, even if the project would like to "pretend" that some parts of their code isn't covered by different license terms than the ones they chose. Even if you don't think the license specifier needs to be updated in this project (i.e. the |
Beta Was this translation helpful? Give feedback.
-
I followed up with the Rust Foundation and put a excerpt from their response in rust-lang/rust#98116 (comment) |
Beta Was this translation helpful? Give feedback.
-
I noticed that the regex-syntax crate includes code that's derived from Unicode data, and also includes the Unicode-DFS-2016 license text - but the license string in the crate metadata doesn't reflect this fact. Looking at other crates that contain code derived from unicode data, it looks like most of them have either recently added "AND Unicode-DFS-2016" to their license string, or were asked to do so, with the issue still open:
It looks like a similar change was discussed when the license terms for Unicode-DFS-2016 were added in this PR:
#535
But the conclusion was that "MIT OR Apache-2.0 OR Unicode-DFS-2016" would be wrong (which it is), not that it should probably be "(MIT OR Apache-2.0) AND Unicode-DFS-2016".
Beta Was this translation helpful? Give feedback.
All reactions