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

utils/license: Add support for parentheses #4257

Merged
merged 1 commit into from
Dec 12, 2021

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 12, 2021

Bildschirmfoto 2021-12-12 um 18 29 16

related to #2595

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Dec 12, 2021
@locks
Copy link
Contributor

locks commented Dec 12, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Dec 12, 2021

📌 Commit 0d1a444 has been approved by locks

@bors
Copy link
Contributor

bors commented Dec 12, 2021

⌛ Testing commit 0d1a444 with merge 193e31b...

@bors
Copy link
Contributor

bors commented Dec 12, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing 193e31b to master...

@bors bors merged commit 193e31b into rust-lang:master Dec 12, 2021
@Turbo87 Turbo87 deleted the complex-license-rendering branch December 12, 2021 18:03
bors added a commit to rust-lang/cargo that referenced this pull request Jan 14, 2024
Delete sentence about parentheses being unsupported in license

Parentheses have been supported by crates.io since 2 years ago.

- rust-lang/crates.io#4257

Their functionality is tested by this test: https://github.com/rust-lang/crates.io/blob/3acd63c1f3625d83322e4819d76296ae5ef291c5/tests/utils/license-test.js#L68-L79.

I think a separate test in Cargo is most likely not valuable because Cargo does not parse these license strings, they are just treated as `Option<String>`.

Here is an example of an extremely widely used package (147 million downloads) with parentheses in its license: https://crates.io/crates/unicode-ident.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants