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 diff --git a/Cargo.lock b/Cargo.lock index 76a4975..5f566fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,43 +1,45 @@ # 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.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab938ebe6f1c82426b5fb82eaf10c3e3028c53deaa3fbe38f5904b37cf4d767" +checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" dependencies = [ "proc-macro2", ] [[package]] name = "syn" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f8c8eab7d9f493cd89d4068085651d81ac7d39c56eb64f7158ea514b156e280" +checksum = "4cff13bb1732bccfe3b246f3fdb09edfd51c01d6f5299b7ccd9457c2e4e37774" 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" -version = "0.0.1" +version = "0.1.0" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index a85f7a5..0e33bf0 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" authors = [ "Daniel Henry-Mantilla ", ] -edition = "2018" +edition = "2021" license = "Zlib OR MIT OR Apache-2.0" @@ -31,9 +31,9 @@ categories = [ ] [dependencies] -syn = { version = "1.0.0", features = ["full"] } -quote = "1.0.0" -proc-macro2 = "1.0.0" +syn = { version = "2.0.0", features = ["full"] } +quote = "1.0.26" +proc-macro2 = "1.0.60" [features] nightly = [] 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,