From 52a59471c9a2869af2969f47c226fdfa17b25536 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Tue, 13 Aug 2024 02:02:12 -0400 Subject: [PATCH] Use `license` instead of `license-file` (#1189) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- native/libcst/Cargo.toml | 2 +- native/libcst_derive/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/native/libcst/Cargo.toml b/native/libcst/Cargo.toml index 2fd6ced5..81f3bd88 100644 --- a/native/libcst/Cargo.toml +++ b/native/libcst/Cargo.toml @@ -10,7 +10,7 @@ authors = ["LibCST Developers"] edition = "2018" rust-version = "1.70" description = "A Python parser and Concrete Syntax Tree library." -license-file = "LICENSE" +license = "MIT AND (MIT AND PSF-2.0)" repository = "https://github.com/Instagram/LibCST" documentation = "https://libcst.rtfd.org" keywords = ["python", "cst", "ast"] diff --git a/native/libcst_derive/Cargo.toml b/native/libcst_derive/Cargo.toml index e2eee2da..47d7ca85 100644 --- a/native/libcst_derive/Cargo.toml +++ b/native/libcst_derive/Cargo.toml @@ -3,7 +3,7 @@ name = "libcst_derive" version = "1.4.0" edition = "2018" description = "Proc macro helpers for libcst." -license-file = "LICENSE" +license = "MIT" repository = "https://github.com/Instagram/LibCST" documentation = "https://libcst.rtfd.org" keywords = ["macros", "python"]