From 8b7fe0e2558ec5ba6f4e766bde18490ec05f75da Mon Sep 17 00:00:00 2001 From: Alextopher Date: Mon, 21 Oct 2024 12:21:33 -0400 Subject: [PATCH] does this work? --- packages/yew-macro/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/yew-macro/Cargo.toml b/packages/yew-macro/Cargo.toml index 6a39bb8a33d..c9d47913a76 100644 --- a/packages/yew-macro/Cargo.toml +++ b/packages/yew-macro/Cargo.toml @@ -16,7 +16,7 @@ rust-version = "1.76.0" proc-macro = true [dependencies] -proc-macro-error2 = { version = "2", features = ["nightly"] } +proc-macro-error2 = "2" proc-macro2 = "1" quote = "1" syn = { version = "2", features = ["full", "extra-traits", "visit-mut"] } @@ -29,5 +29,9 @@ rustversion = "1" trybuild = "1" yew = { path = "../yew" } +[features] +default = [] +nightly_yew = ["proc-macro-error2/nightly"] + [lints.rust] unexpected_cfgs = { level = "allow", check-cfg = ['cfg(nightly_yew)'] }