From 03411f7a0cbc8a342602e0e69fcdbc46d08b5cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 19 Dec 2019 15:53:32 +0100 Subject: [PATCH] Derive Macros: Update dependencies --- src/ch19-06-macros.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ch19-06-macros.md b/src/ch19-06-macros.md index 013191b83..ffaee7591 100644 --- a/src/ch19-06-macros.md +++ b/src/ch19-06-macros.md @@ -315,8 +315,8 @@ in a moment, so we need to add them as dependencies. Add the following to the proc-macro = true [dependencies] -syn = "0.14.4" -quote = "0.6.3" +syn = "1.0" +quote = "1.0" ``` To start defining the procedural macro, place the code in Listing 19-31 into @@ -417,7 +417,7 @@ with the `ident` (identifier, meaning the name) of `Pancakes`. There are more fields on this struct for describing all sorts of Rust code; check the [`syn` documentation for `DeriveInput`][syn-docs] for more information. -[syn-docs]: https://docs.rs/syn/0.14.4/syn/struct.DeriveInput.html +[syn-docs]: https://docs.rs/syn/1.0/syn/struct.DeriveInput.html Soon we’ll define the `impl_hello_macro` function, which is where we’ll build the new Rust code we want to include. But before we do, note that the output