From 6f41557938ebf38bb3a9dbe455cca99bf54c05c1 Mon Sep 17 00:00:00 2001 From: klensy Date: Thu, 11 Jul 2024 11:42:12 +0300 Subject: [PATCH 1/2] config_proc_macro: reduce syn's features --- config_proc_macro/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_proc_macro/Cargo.toml b/config_proc_macro/Cargo.toml index eda8a7fce81..73129e68d94 100644 --- a/config_proc_macro/Cargo.toml +++ b/config_proc_macro/Cargo.toml @@ -13,7 +13,7 @@ proc-macro = true [dependencies] proc-macro2 = "1.0" quote = "1.0" -syn = { version = "2.0", features = ["full", "visit"] } +syn = { version = "2.0", default-features = false, features = ["full", "parsing", "proc-macro", "printing"] } [dev-dependencies] serde = { version = "1.0.160", features = ["derive"] } From 6315ec1f73f3add2ca00049b933b2f36e81784bf Mon Sep 17 00:00:00 2001 From: klensy Date: Tue, 30 Jul 2024 14:19:20 +0300 Subject: [PATCH 2/2] config_proc_macro: bump edition to 2021 --- config_proc_macro/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_proc_macro/Cargo.toml b/config_proc_macro/Cargo.toml index 73129e68d94..ec0db49d71c 100644 --- a/config_proc_macro/Cargo.toml +++ b/config_proc_macro/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "rustfmt-config_proc_macro" version = "0.3.0" -edition = "2018" +edition = "2021" description = "A collection of procedural macros for rustfmt" license = "Apache-2.0 OR MIT" categories = ["development-tools::procedural-macro-helpers"]