Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 31, 2018
1 parent 622e7b5 commit b4d53e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 <dtolnay@gmail.com>"]
license = "MIT/Apache-2.0"
description = "Quasi-quoting macro quote!(...)"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,7 +33,7 @@ first support for procedural macros in Rust 1.15.0.*

```toml
[dependencies]
quote = "0.4"
quote = "0.5"
```

```rust
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//!
//! ```toml
//! [dependencies]
//! quote = "0.4"
//! quote = "0.5"
//! ```
//!
//! ```
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b4d53e6

Please sign in to comment.