Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 17, 2023
1 parent 29bd855 commit 906fa56
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "syn"
version = "1.0.109" # don't forget to update html_root_url and syn.json
version = "2.0.0" # don't forget to update html_root_url and syn.json
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["development-tools::procedural-macro-helpers", "parser-implementations"]
description = "Parser for Rust source code"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -76,7 +76,7 @@ tokens back to the compiler to compile into the user's crate.

```toml
[dependencies]
syn = "1.0"
syn = "2.0"
quote = "1.0"

[lib]
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Expand Up @@ -62,7 +62,7 @@
//!
//! ```toml
//! [dependencies]
//! syn = "1.0"
//! syn = "2.0"
//! quote = "1.0"
//!
//! [lib]
Expand Down Expand Up @@ -249,7 +249,7 @@
//! dynamic library libproc_macro from rustc toolchain.

// Syn types in rustdoc of other crates get linked to here.
#![doc(html_root_url = "https://docs.rs/syn/1.0.109")]
#![doc(html_root_url = "https://docs.rs/syn/2.0.0")]
#![cfg_attr(doc_cfg, feature(doc_cfg))]
#![allow(non_camel_case_types)]
#![allow(
Expand Down Expand Up @@ -548,7 +548,7 @@ mod gen {
/// ```
/// // [dependencies]
/// // quote = "1.0"
/// // syn = { version = "1.0", features = ["fold", "full"] }
/// // syn = { version = "2.0", features = ["fold", "full"] }
///
/// use quote::quote;
/// use syn::fold::{fold_expr, Fold};
Expand Down Expand Up @@ -630,7 +630,7 @@ mod gen {
/// ```
/// // [dependencies]
/// // quote = "1.0"
/// // syn = { version = "1.0", features = ["full", "visit"] }
/// // syn = { version = "2.0", features = ["full", "visit"] }
///
/// use quote::quote;
/// use syn::visit::{self, Visit};
Expand Down Expand Up @@ -750,7 +750,7 @@ mod gen {
/// ```
/// // [dependencies]
/// // quote = "1.0"
/// // syn = { version = "1.0", features = ["full", "visit-mut"] }
/// // syn = { version = "2.0", features = ["full", "visit-mut"] }
///
/// use quote::quote;
/// use syn::visit_mut::{self, VisitMut};
Expand Down
2 changes: 1 addition & 1 deletion syn.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 906fa56

Please sign in to comment.