diff --git a/Cargo.toml b/Cargo.toml index 65493a9..dbcc966 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "variadics_please" -version = "1.1.0" -edition = "2021" +version = "2.0.0" +edition = "2024" description = "Implement things as if rust had variadics" homepage = "https://github.com/bevyengine/variadics_please" repository = "https://github.com/bevyengine/variadics_please" license = "MIT OR Apache-2.0" keywords = ["bevy", "variadics", "docs"] -rust-version = "1.83.0" +rust-version = "1.85.0" categories = ["rust-patterns"] exclude = ["tools/", ".github/"] documentation = "https://docs.rs/variadics_please" diff --git a/RELEASES.md b/RELEASES.md index 1c6ee81..d8f9663 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,6 +1,6 @@ # `variadics_please` Release Notes -## Unreleased +## Version 2.0.0 - Switch from `syn` to `unsynn` - [`syn` is known to be a major compile time bottleneck](https://fasterthanli.me/articles/the-virtue-of-unsynn). To improve the situation for users of `variadics_please`, we switched to `unsynn`, which is the alternative used by [`facet`](https://fasterthanli.me/articles/introducing-facet-reflection-for-rust). @@ -9,7 +9,7 @@ - The code generated by `variadics_please` should be identical to before. Our Error messages may look a bit different now, but they should be just as readable. If you encounter any weird behavior or diagnostics, let us know. - - Using `unsynn` bumps the MSRV from 1.81.0 to 1.83.0 +- Use Rust 2024, which bumps the MSRV to `1.85.0` ## Version 1.1 diff --git a/src/lib.rs b/src/lib.rs index 60e484d..9aed364 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ use proc_macro::TokenStream; use quote::quote; -use unsynn::{format_ident, TokenStream as TokenStream2, *}; +use unsynn::{TokenStream as TokenStream2, format_ident, *}; unsynn! { keyword KDoc = "doc"; diff --git a/tests/fake_variadic_all_tuples.rs b/tests/fake_variadic_all_tuples.rs index 7db3d97..c303c41 100644 --- a/tests/fake_variadic_all_tuples.rs +++ b/tests/fake_variadic_all_tuples.rs @@ -21,7 +21,9 @@ all_tuples!( T ); -all_tuples!(/*no attribute here, since it's added before*/ foo, 4, 5, T); +all_tuples!( + /*no attribute here, since it's added before*/ foo, 4, 5, T +); trait Bar {} @@ -41,7 +43,9 @@ all_tuples!( U ); -all_tuples!(/*no attribute here, since it's added before*/ bar, 4, 5, T, U); +all_tuples!( + /*no attribute here, since it's added before*/ bar, 4, 5, T, U +); trait Baz {} diff --git a/tests/fake_variadic_all_tuples_enumerated.rs b/tests/fake_variadic_all_tuples_enumerated.rs index f3338e7..06c6259 100644 --- a/tests/fake_variadic_all_tuples_enumerated.rs +++ b/tests/fake_variadic_all_tuples_enumerated.rs @@ -21,7 +21,9 @@ all_tuples_enumerated!( T ); -all_tuples_enumerated!(/*no attribute here, since it's added before*/ foo, 4, 5, T); +all_tuples_enumerated!( + /*no attribute here, since it's added before*/ foo, 4, 5, T +); trait Bar {} @@ -41,7 +43,9 @@ all_tuples_enumerated!( U ); -all_tuples_enumerated!(/*no attribute here, since it's added before*/ bar, 4, 5, T, U); +all_tuples_enumerated!( + /*no attribute here, since it's added before*/ bar, 4, 5, T, U +); trait Baz {}