Skip to content

Commit

Permalink
Update versions in readme and links
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 15, 2019
1 parent 38978d6 commit d3805ea
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Parser for Rust source code

[![Build Status](https://api.travis-ci.org/dtolnay/syn.svg?branch=master)](https://travis-ci.org/dtolnay/syn)
[![Latest Version](https://img.shields.io/crates/v/syn.svg)](https://crates.io/crates/syn)
[![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/syn/0.15/syn/)
[![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/syn/1.0/syn/)
[![Rustc Version 1.31+](https://img.shields.io/badge/rustc-1.31+-lightgray.svg)](https://blog.rust-lang.org/2018/12/06/Rust-1.31-and-rust-2018.html)

Syn is a parsing library for parsing a stream of Rust tokens into a syntax tree
Expand Down Expand Up @@ -39,12 +39,12 @@ contains some APIs that may be useful more generally.
procedural macros enable only what they need, and do not pay in compile time
for all the rest.

[`syn::File`]: https://docs.rs/syn/0.15/syn/struct.File.html
[`syn::Item`]: https://docs.rs/syn/0.15/syn/enum.Item.html
[`syn::Expr`]: https://docs.rs/syn/0.15/syn/enum.Expr.html
[`syn::Type`]: https://docs.rs/syn/0.15/syn/enum.Type.html
[`syn::DeriveInput`]: https://docs.rs/syn/0.15/syn/struct.DeriveInput.html
[parser functions]: https://docs.rs/syn/0.15/syn/parse/index.html
[`syn::File`]: https://docs.rs/syn/1.0/syn/struct.File.html
[`syn::Item`]: https://docs.rs/syn/1.0/syn/enum.Item.html
[`syn::Expr`]: https://docs.rs/syn/1.0/syn/enum.Expr.html
[`syn::Type`]: https://docs.rs/syn/1.0/syn/enum.Type.html
[`syn::DeriveInput`]: https://docs.rs/syn/1.0/syn/struct.DeriveInput.html
[parser functions]: https://docs.rs/syn/1.0/syn/parse/index.html

If you get stuck with anything involving procedural macros in Rust I am happy to
provide help even if the issue is not related to Syn. Please file a ticket in
Expand Down Expand Up @@ -80,8 +80,8 @@ tokens back to the compiler to compile into the user's crate.

```toml
[dependencies]
syn = "0.15"
quote = "0.6"
syn = "1.0"
quote = "1.0"

[lib]
proc-macro = true
Expand Down
2 changes: 1 addition & 1 deletion examples/trace-var/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ n = 1
The procedural macro uses a syntax tree [`Fold`] to rewrite every `let`
statement and assignment expression in the following way:

[`Fold`]: https://docs.rs/syn/0.15/syn/fold/trait.Fold.html
[`Fold`]: https://docs.rs/syn/1.0/syn/fold/trait.Fold.html

```rust
// Before
Expand Down
6 changes: 3 additions & 3 deletions json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
//! of the [`visit`], [`visit_mut`], and [`fold`] modules can be generated
//! programmatically from a description of the syntax tree.
//!
//! [`visit`]: https://docs.rs/syn/0.15/syn/visit/index.html
//! [`visit_mut`]: https://docs.rs/syn/0.15/syn/visit_mut/index.html
//! [`fold`]: https://docs.rs/syn/0.15/syn/fold/index.html
//! [`visit`]: https://docs.rs/syn/1.0/syn/visit/index.html
//! [`visit_mut`]: https://docs.rs/syn/1.0/syn/visit_mut/index.html
//! [`fold`]: https://docs.rs/syn/1.0/syn/fold/index.html
//!
//! To make this type of code as easy as possible to implement in any language,
//! every Syn release comes with a machine-readable description of that version
Expand Down
2 changes: 1 addition & 1 deletion src/parse_quote.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Quasi-quotation macro that accepts input like the [`quote!`] macro but uses
/// type inference to figure out a return type for those tokens.
///
/// [`quote!`]: https://docs.rs/quote/0.6/quote/index.html
/// [`quote!`]: https://docs.rs/quote/1.0/quote/index.html
///
/// The return type can be any syntax tree node that implements the [`Parse`]
/// trait.
Expand Down
4 changes: 2 additions & 2 deletions src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
//!
//! [Peeking]: ../parse/struct.ParseBuffer.html#method.peek
//! [Parsing]: ../parse/struct.ParseBuffer.html#method.parse
//! [Printing]: https://docs.rs/quote/0.6/quote/trait.ToTokens.html
//! [`Span`]: https://docs.rs/proc-macro2/0.4/proc_macro2/struct.Span.html
//! [Printing]: https://docs.rs/quote/1.0/quote/trait.ToTokens.html
//! [`Span`]: https://docs.rs/proc-macro2/1.0/proc_macro2/struct.Span.html
use std;
#[cfg(feature = "extra-traits")]
Expand Down

0 comments on commit d3805ea

Please sign in to comment.