From 946b8d6bdef4b15a33424c320814d960afb5ace4 Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Fri, 6 Sep 2024 16:38:45 -0700 Subject: [PATCH] refactor: bump to syn 2.0 (#663) --- Cargo.lock | 27 ++++++++------------------- tskit-derive/Cargo.toml | 2 +- tskit-derive/src/lib.rs | 4 ++-- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 97b62763..931653c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,7 +99,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.57", + "syn", "which", ] @@ -183,7 +183,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.57", + "syn", ] [[package]] @@ -206,7 +206,7 @@ checksum = "4e018fccbeeb50ff26562ece792ed06659b9c2dae79ece77c4456bb10d9bf79b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn", ] [[package]] @@ -416,7 +416,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d3928fb5db768cb86f891ff014f0144589297e3c6a1aba6ed7cecfdace270c7" dependencies = [ "proc-macro2", - "syn 2.0.57", + "syn", ] [[package]] @@ -438,7 +438,7 @@ dependencies = [ "proc-macro-error-attr2", "proc-macro2", "quote", - "syn 2.0.57", + "syn", ] [[package]] @@ -583,7 +583,7 @@ checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn", ] [[package]] @@ -615,17 +615,6 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" -[[package]] -name = "syn" -version = "1.0.109" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - [[package]] name = "syn" version = "2.0.57" @@ -654,7 +643,7 @@ checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", - "syn 2.0.57", + "syn", ] [[package]] @@ -687,7 +676,7 @@ version = "0.2.0" dependencies = [ "proc-macro-error2", "quote", - "syn 1.0.109", + "syn", ] [[package]] diff --git a/tskit-derive/Cargo.toml b/tskit-derive/Cargo.toml index 324ba19b..0cfdbecc 100644 --- a/tskit-derive/Cargo.toml +++ b/tskit-derive/Cargo.toml @@ -12,6 +12,6 @@ homepage = "https://github.com/tskit-dev/tskit-rust" proc-macro = true [dependencies] -syn = { version = "1.0", features = ["derive"] } +syn = { version = "2.0", features = ["derive"] } quote = "1.0" proc-macro-error2 = "2.0" diff --git a/tskit-derive/src/lib.rs b/tskit-derive/src/lib.rs index 1c4e2bdb..88e48c57 100644 --- a/tskit-derive/src/lib.rs +++ b/tskit-derive/src/lib.rs @@ -55,7 +55,7 @@ fn impl_metadata_roundtrip_macro(ast: &syn::DeriveInput) -> Result Result