From 12a247444cce91bc5784403ae5cc54d1013b979b Mon Sep 17 00:00:00 2001 From: Ham Date: Wed, 3 May 2023 18:24:22 +0800 Subject: [PATCH 1/3] Procedure Macro: Update dependencies --- .../listing-19-31/hello_macro/hello_macro_derive/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/Cargo.toml b/listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/Cargo.toml index aa076ac48b..ed9e917ad0 100644 --- a/listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/Cargo.toml +++ b/listings/ch19-advanced-features/listing-19-31/hello_macro/hello_macro_derive/Cargo.toml @@ -7,5 +7,5 @@ edition = "2021" proc-macro = true [dependencies] -syn = "1.0" +syn = "2.0" quote = "1.0" From f1877e8db3097ed9e9607f8bdabe00df72ca89d3 Mon Sep 17 00:00:00 2001 From: Ham Date: Wed, 3 May 2023 18:33:18 +0800 Subject: [PATCH 2/3] update link to doc of syn crate --- src/ch19-06-macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch19-06-macros.md b/src/ch19-06-macros.md index 7731869eae..9b6ab16633 100644 --- a/src/ch19-06-macros.md +++ b/src/ch19-06-macros.md @@ -508,6 +508,6 @@ and do one more project! [tlborm]: https://veykril.github.io/tlborm/ [`syn`]: https://crates.io/crates/syn [`quote`]: https://crates.io/crates/quote -[syn-docs]: https://docs.rs/syn/1.0/syn/struct.DeriveInput.html +[syn-docs]: https://docs.rs/syn/latest/syn/struct.DeriveInput.html [quote-docs]: https://docs.rs/quote [decl]: #declarative-macros-with-macro_rules-for-general-metaprogramming From 74b9dd2cb6df6d8f2a7e09d5575edef836786c83 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Mon, 8 Apr 2024 14:10:50 -0600 Subject: [PATCH 3/3] Use explicit 2.0, not latest, for syn docs link --- src/ch19-06-macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch19-06-macros.md b/src/ch19-06-macros.md index 9b6ab16633..f24a818c18 100644 --- a/src/ch19-06-macros.md +++ b/src/ch19-06-macros.md @@ -508,6 +508,6 @@ and do one more project! [tlborm]: https://veykril.github.io/tlborm/ [`syn`]: https://crates.io/crates/syn [`quote`]: https://crates.io/crates/quote -[syn-docs]: https://docs.rs/syn/latest/syn/struct.DeriveInput.html +[syn-docs]: https://docs.rs/syn/2.0/syn/struct.DeriveInput.html [quote-docs]: https://docs.rs/quote [decl]: #declarative-macros-with-macro_rules-for-general-metaprogramming