Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -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).
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 6 additions & 2 deletions tests/fake_variadic_all_tuples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand All @@ -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 {}

Expand Down
8 changes: 6 additions & 2 deletions tests/fake_variadic_all_tuples_enumerated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand All @@ -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 {}

Expand Down
Loading