diff --git a/Cargo.toml b/Cargo.toml index d437eb1..bd05660 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "quote" -version = "0.4.2" # don't forget to update html_root_url, version in readme for breaking changes +version = "0.5.0" # don't forget to update html_root_url, version in readme for breaking changes authors = ["David Tolnay "] license = "MIT/Apache-2.0" description = "Quasi-quoting macro quote!(...)" diff --git a/README.md b/README.md index 90db719..e38319c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Rust Quasi-Quoting This crate provides the [`quote!`] macro for turning Rust syntax tree data structures into tokens of source code. -[`quote!`]: https://docs.rs/quote/0.4/quote/macro.quote.html +[`quote!`]: https://docs.rs/quote/0.5/quote/macro.quote.html Procedural macros in Rust receive a stream of tokens as input, execute arbitrary Rust code to determine how to manipulate those tokens, and produce a stream of @@ -33,7 +33,7 @@ first support for procedural macros in Rust 1.15.0.* ```toml [dependencies] -quote = "0.4" +quote = "0.5" ``` ```rust @@ -50,13 +50,13 @@ should think of `Tokens` as representing a fragment of Rust source code. Call or call `into()` to stream them as a `TokenStream` back to the compiler in a procedural macro. -[`quote::Tokens`]: https://docs.rs/quote/0.4/quote/struct.Tokens.html +[`quote::Tokens`]: https://docs.rs/quote/0.5/quote/struct.Tokens.html Within the `quote!` macro, interpolation is done with `#var`. Any type implementing the [`quote::ToTokens`] trait can be interpolated. This includes most Rust primitive types as well as most of the syntax tree types from [`syn`]. -[`quote::ToTokens`]: https://docs.rs/quote/0.4/quote/trait.ToTokens.html +[`quote::ToTokens`]: https://docs.rs/quote/0.5/quote/trait.ToTokens.html [`syn`]: https://github.com/dtolnay/syn ```rust @@ -109,7 +109,7 @@ are spanned with [`Span::def_site()`]. A different span can be provided explicitly through the [`quote_spanned!`] macro. -[`quote_spanned!`]: https://docs.rs/quote/0.4/quote/macro.quote_spanned.html +[`quote_spanned!`]: https://docs.rs/quote/0.5/quote/macro.quote_spanned.html ### Recursion limit diff --git a/src/lib.rs b/src/lib.rs index 34e38bd..17272c3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,7 +26,7 @@ //! //! ```toml //! [dependencies] -//! quote = "0.4" +//! quote = "0.5" //! ``` //! //! ``` @@ -91,7 +91,7 @@ //! An even higher limit may be necessary for especially large invocations. // Quote types in rustdoc of other crates get linked to here. -#![doc(html_root_url = "https://docs.rs/quote/0.4.2")] +#![doc(html_root_url = "https://docs.rs/quote/0.5.0")] #[cfg(feature = "proc-macro")] extern crate proc_macro;