Skip to content

Commit 52a5947

Browse files
authored
Use license instead of license-file (#1189)
Per the Cargo Book, `license-file` is only to be used if a package uses a non-standard license; see https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields Declare the licenses directly, and verify that the LICENSE file containing the license breakdown is still included ``` …n LibCST/native/libcst_derive on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1 ⬢ [fedora:40] ❯ cargo package --list --allow-dirty | grep LICENSE LICENSE …n LibCST/native/libcst_derive on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1 ⬢ [fedora:40] ❯ cd ../libcst michel in LibCST/native/libcst on  cargo-fixes [!] is 📦 v1.4.0 via 🦀 v1.77.1 ⬢ [fedora:40] ❯ cargo package --list --allow-dirty | grep LICENSE LICENSE src/tokenizer/core/LICENSE ``` Signed-off-by: Michel Lind <[email protected]>
1 parent 5f5fd38 commit 52a5947

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

native/libcst/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = ["LibCST Developers"]
1010
edition = "2018"
1111
rust-version = "1.70"
1212
description = "A Python parser and Concrete Syntax Tree library."
13-
license-file = "LICENSE"
13+
license = "MIT AND (MIT AND PSF-2.0)"
1414
repository = "https://github.com/Instagram/LibCST"
1515
documentation = "https://libcst.rtfd.org"
1616
keywords = ["python", "cst", "ast"]

native/libcst_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libcst_derive"
33
version = "1.4.0"
44
edition = "2018"
55
description = "Proc macro helpers for libcst."
6-
license-file = "LICENSE"
6+
license = "MIT"
77
repository = "https://github.com/Instagram/LibCST"
88
documentation = "https://libcst.rtfd.org"
99
keywords = ["macros", "python"]

0 commit comments

Comments
 (0)