Skip to content

Commit 9d3473c

Browse files
committed
Auto merge of #13292 - dtolnay-contrib:parentheses, r=weihanglo
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.
2 parents d530b46 + c78b2ca commit 9d3473c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/src/reference/manifest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ containing the text of the license (relative to this `Cargo.toml`).
270270

271271
[crates.io] interprets the `license` field as an [SPDX 2.3 license
272272
expression][spdx-2.3-license-expressions]. The name must be a known license
273-
from the [SPDX license list 3.20][spdx-license-list-3.20]. Parentheses are not
274-
currently supported. See the [SPDX site] for more information.
273+
from the [SPDX license list 3.20][spdx-license-list-3.20]. See the [SPDX site]
274+
for more information.
275275

276276
SPDX license expressions support AND and OR operators to combine multiple
277277
licenses.[^slash]

0 commit comments

Comments
 (0)