From 36360ee95dc4ce3e8126daaa20dce70a9dfaf5a4 Mon Sep 17 00:00:00 2001 From: xFrednet Date: Sat, 2 Sep 2023 13:56:57 +0200 Subject: [PATCH 1/7] Bump `syn` dependency to 2.0 and msrv to 1.56.0 --- Cargo.lock | 24 +++++++++++++----------- Cargo.toml | 2 +- README.md | 2 +- rust-toolchain | 2 +- src/lib.rs | 1 - 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 76a4975..6fdbcd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,39 +1,41 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "proc-macro2" -version = "1.0.0" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19f287c234c9b2d0308d692dee5c449c1a171167a6f8150f7cf2a49d8fd96967" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] name = "quote" -version = "1.0.0" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab938ebe6f1c82426b5fb82eaf10c3e3028c53deaa3fbe38f5904b37cf4d767" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] [[package]] name = "syn" -version = "1.0.0" +version = "2.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f8c8eab7d9f493cd89d4068085651d81ac7d39c56eb64f7158ea514b156e280" +checksum = "c324c494eba9d92503e6f1ef2e6df781e78f6a7705a0202d9801b198807d518a" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", ] [[package]] -name = "unicode-xid" -version = "0.2.0" +name = "unicode-ident" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" +checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "visibility" diff --git a/Cargo.toml b/Cargo.toml index a85f7a5..8fee587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ categories = [ ] [dependencies] -syn = { version = "1.0.0", features = ["full"] } +syn = { version = "2.0.0", features = ["full"] } quote = "1.0.0" proc-macro2 = "1.0.0" diff --git a/README.md b/README.md index 201fc8a..2039eb1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Repository](https://img.shields.io/badge/repository-GitHub-brightgreen.svg)](https://github.com/danielhenrymantilla/visibility.rs) [![Latest version](https://img.shields.io/crates/v/visibility.svg)](https://crates.io/crates/visibility) [![Documentation](https://docs.rs/visibility/badge.svg)](https://docs.rs/visibility) -[![MSRV](https://img.shields.io/badge/MSRV-1.43.0-white)](https://gist.github.com/danielhenrymantilla/8e5b721b3929084562f8f65668920c33) +[![MSRV](https://img.shields.io/badge/MSRV-1.56.0-white)](https://gist.github.com/danielhenrymantilla/8e5b721b3929084562f8f65668920c33) [![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) [![License](https://img.shields.io/crates/l/visibility.svg)](https://github.com/danielhenrymantilla/visibility.rs/blob/master/LICENSE) [![CI](https://github.com/danielhenrymantilla/visibility.rs/workflows/CI/badge.svg)](https://github.com/danielhenrymantilla/visibility.rs/actions) diff --git a/rust-toolchain b/rust-toolchain index b978278..3ebf789 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.43.0 +1.56.0 diff --git a/src/lib.rs b/src/lib.rs index 2e0439a..780f5b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,7 +64,6 @@ fn make (attrs: TokenStream, input: TokenStream) // | Item::ForeignMod(ItemForeignMod { ref mut vis, .. }) => *vis = visibility, // | Item::Impl(ItemImpl { ref mut vis, .. }) => *vis = visibility, // | Item::Macro(ItemMacro { ref mut vis, .. }) => *vis = visibility, - | Item::Macro2(ItemMacro2 { ref mut vis, .. }) => *vis = visibility, | Item::Mod(ItemMod { ref mut vis, .. }) => *vis = visibility, | Item::Static(ItemStatic { ref mut vis, .. }) => *vis = visibility, | Item::Struct(ItemStruct { ref mut vis, .. }) => *vis = visibility, From e0771d2c89a1b2d1ebe05b55b8e937aa8bb67adf Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 14:49:48 +0000 Subject: [PATCH 2/7] Next version release candidate --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8fee587..9d25f78 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,11 @@ proc-macro = true [package] name = "visibility" -version = "0.0.1" +version = "0.1.0-rc1" authors = [ "Daniel Henry-Mantilla ", ] -edition = "2018" +edition = "2021" license = "Zlib OR MIT OR Apache-2.0" From 840d296dd13d34add7d08d3f0ab6cf18b981eced Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 14:52:03 +0000 Subject: [PATCH 3/7] Adjust minimal versions for documentation purposes --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9d25f78..5d1a0ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,8 +32,8 @@ categories = [ [dependencies] syn = { version = "2.0.0", features = ["full"] } -quote = "1.0.0" -proc-macro2 = "1.0.0" +quote = "1.0.26" +proc-macro2 = "1.0.52" [features] nightly = [] From ea5d8ed8085f8a35d1c859fc2bbba4d041e2bc13 Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 14:52:40 +0000 Subject: [PATCH 4/7] Update `.lock` file --- Cargo.lock | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6fdbcd0..cd1ec0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,27 +4,27 @@ version = 3 [[package]] name = "proc-macro2" -version = "1.0.66" +version = "1.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" +checksum = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.33" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" dependencies = [ "proc-macro2", ] [[package]] name = "syn" -version = "2.0.29" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c324c494eba9d92503e6f1ef2e6df781e78f6a7705a0202d9801b198807d518a" +checksum = "4cff13bb1732bccfe3b246f3fdb09edfd51c01d6f5299b7ccd9457c2e4e37774" dependencies = [ "proc-macro2", "quote", @@ -39,7 +39,7 @@ checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "visibility" -version = "0.0.1" +version = "0.1.0-rc1" dependencies = [ "proc-macro2", "quote", From f6f645ead3b2bc59bf18181d6c161666282b644b Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 14:54:34 +0000 Subject: [PATCH 5/7] Update MSRV bump in CI scripts --- .github/workflows/CI.yml | 4 ++-- .github/workflows/future-proof.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9584ba6..b9a6e90 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: rust-toolchains: - - 1.43.0 + - 1.56.0 - stable - beta cargo-locked: ["--locked", ""] @@ -52,7 +52,7 @@ jobs: - macos-latest - windows-latest rust-toolchains: - - 1.43.0 + - 1.56.0 - stable - nightly steps: diff --git a/.github/workflows/future-proof.yml b/.github/workflows/future-proof.yml index a6b9323..eab3737 100644 --- a/.github/workflows/future-proof.yml +++ b/.github/workflows/future-proof.yml @@ -20,7 +20,7 @@ jobs: - macos-latest - windows-latest rust-toolchains: - - 1.42.0 + - 1.56.0 - stable - beta - nightly From 30fdf3736583f068efd662bc02a4c145077ee9e1 Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 15:16:42 +0000 Subject: [PATCH 6/7] Bump `proc-macro2` to `60` to avoid nightly breakage --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd1ec0d..b981dc3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "proc-macro2" -version = "1.0.52" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] diff --git a/Cargo.toml b/Cargo.toml index 5d1a0ed..ace72fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ categories = [ [dependencies] syn = { version = "2.0.0", features = ["full"] } quote = "1.0.26" -proc-macro2 = "1.0.52" +proc-macro2 = "1.0.60" [features] nightly = [] From b5960e223ce71a2928f0ffb5e469e3ca5527ac6a Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Sat, 2 Sep 2023 15:13:33 +0000 Subject: [PATCH 7/7] Version 0.1.0 release --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b981dc3..5f566fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,7 +39,7 @@ checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "visibility" -version = "0.1.0-rc1" +version = "0.1.0" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index ace72fc..0e33bf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ proc-macro = true [package] name = "visibility" -version = "0.1.0-rc1" +version = "0.1.0" authors = [ "Daniel Henry-Mantilla ", ]