From 68b1aae1c431e395c74c51c6eeff4fd82d11c9c2 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 29 Jul 2019 09:52:32 -0700 Subject: [PATCH] Release 1.0.0-rc1 --- Cargo.toml | 11 +++-------- codegen/Cargo.toml | 8 ++------ dev/Cargo.toml | 2 +- examples/dump-syntax/Cargo.toml | 5 +---- examples/heapsize/Cargo.toml | 4 ---- examples/heapsize/heapsize_derive/Cargo.toml | 4 ++-- examples/lazy-static/Cargo.toml | 4 ---- examples/lazy-static/lazy-static/Cargo.toml | 4 ++-- examples/trace-var/Cargo.toml | 4 ---- examples/trace-var/trace-var/Cargo.toml | 4 ++-- src/lib.rs | 6 +++--- 11 files changed, 16 insertions(+), 40 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53ab274090..bc78b22d71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "syn-next" -version = "0.15.42" # don't forget to update html_root_url and syn.json +version = "1.0.0-rc1" # don't forget to update html_root_url and syn.json authors = ["David Tolnay "] license = "MIT OR Apache-2.0" description = "Parser for Rust source code" @@ -19,7 +19,6 @@ include = [ "/tests/**", ] edition = "2018" -publish = false # contains breaking changes [lib] name = "syn" @@ -38,8 +37,8 @@ extra-traits = [] proc-macro = ["proc-macro2-next/proc-macro", "quote-next/proc-macro"] [dependencies] -proc-macro2-next = { version = "0.4.4", default-features = false } -quote-next = { version = "0.6", optional = true, default-features = false } +proc-macro2-next = { version = "1.0.0-rc1", default-features = false } +quote-next = { version = "1.0.0-rc1", optional = true, default-features = false } unicode-xid = "0.2" [dev-dependencies] @@ -72,7 +71,3 @@ travis-ci = { repository = "dtolnay/syn" } [workspace] members = ["dev", "json"] - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } -quote-next = { git = "https://github.com/dtolnay/quote" } diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index b37a3dff26..4925025643 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -8,12 +8,12 @@ publish = false # this is an internal crate which should never be published [dependencies] syn-next = { path = "..", features = ["full", "extra-traits"] } -quote-next = "0.6" +quote-next = "1.0.0-rc1" color-backtrace = "0.2" failure = "0.1" indexmap = { version = "1.0", features = ["serde-1"] } inflections = "1.1" -proc-macro2-next = "0.4" +proc-macro2-next = "1.0.0-rc1" rustfmt = { package = "rustfmt-nightly", git = "https://github.com/rust-lang-nursery/rustfmt" } serde = { version = "1.0.88", features = ["derive"] } serde_json = "1.0.38" @@ -24,7 +24,3 @@ syn-codegen = { path = "../json" } [workspace] # Prefer that `cargo clean` in syn's directory does not require a rebuild of # rustfmt in the codegen directory. - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } -quote-next = { git = "https://github.com/dtolnay/quote" } diff --git a/dev/Cargo.toml b/dev/Cargo.toml index caad1a06bc..d138080584 100644 --- a/dev/Cargo.toml +++ b/dev/Cargo.toml @@ -14,7 +14,7 @@ path = "main.rs" name = "syn-dev" [dependencies] -quote-next = "0.6" +quote-next = "1.0.0-rc1" [dependencies.syn-next] path = ".." diff --git a/examples/dump-syntax/Cargo.toml b/examples/dump-syntax/Cargo.toml index b3f7661270..bbf9b59d49 100644 --- a/examples/dump-syntax/Cargo.toml +++ b/examples/dump-syntax/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" publish = false [dependencies] -proc-macro2-next = { version = "0.4.27", features = ["span-locations"] } +proc-macro2-next = { version = "1.0.0-rc1", features = ["span-locations"] } colored = "1.7" [dependencies.syn-next] @@ -15,6 +15,3 @@ default-features = false features = ["parsing", "full", "extra-traits"] [workspace] - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } diff --git a/examples/heapsize/Cargo.toml b/examples/heapsize/Cargo.toml index 4878cf0be9..9b19214075 100644 --- a/examples/heapsize/Cargo.toml +++ b/examples/heapsize/Cargo.toml @@ -1,6 +1,2 @@ [workspace] members = ["example", "heapsize", "heapsize_derive"] - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } -quote-next = { git = "https://github.com/dtolnay/quote" } diff --git a/examples/heapsize/heapsize_derive/Cargo.toml b/examples/heapsize/heapsize_derive/Cargo.toml index 213f142bad..1314ab2142 100644 --- a/examples/heapsize/heapsize_derive/Cargo.toml +++ b/examples/heapsize/heapsize_derive/Cargo.toml @@ -9,6 +9,6 @@ publish = false proc-macro = true [dependencies] -proc-macro2-next = "0.4" -quote-next = "0.6" +proc-macro2-next = "1.0.0-rc1" +quote-next = "1.0.0-rc1" syn-next = { path = "../../.." } diff --git a/examples/lazy-static/Cargo.toml b/examples/lazy-static/Cargo.toml index 62badfcf1f..586e547f78 100644 --- a/examples/lazy-static/Cargo.toml +++ b/examples/lazy-static/Cargo.toml @@ -1,6 +1,2 @@ [workspace] members = ["example", "lazy-static"] - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } -quote-next = { git = "https://github.com/dtolnay/quote" } diff --git a/examples/lazy-static/lazy-static/Cargo.toml b/examples/lazy-static/lazy-static/Cargo.toml index b94907729b..4aa7f1952d 100644 --- a/examples/lazy-static/lazy-static/Cargo.toml +++ b/examples/lazy-static/lazy-static/Cargo.toml @@ -10,5 +10,5 @@ proc-macro = true [dependencies] syn-next = { path = "../../../", features = ["full"] } -quote-next = "0.6" -proc-macro2-next = { version = "0.4", features = ["nightly"] } +quote-next = "1.0.0-rc1" +proc-macro2-next = { version = "1.0.0-rc1", features = ["nightly"] } diff --git a/examples/trace-var/Cargo.toml b/examples/trace-var/Cargo.toml index b2aef84b7e..b54454d507 100644 --- a/examples/trace-var/Cargo.toml +++ b/examples/trace-var/Cargo.toml @@ -1,6 +1,2 @@ [workspace] members = ["example", "trace-var"] - -[patch.crates-io] -proc-macro2-next = { git = "https://github.com/alexcrichton/proc-macro2", branch = "next" } -quote-next = { git = "https://github.com/dtolnay/quote" } diff --git a/examples/trace-var/trace-var/Cargo.toml b/examples/trace-var/trace-var/Cargo.toml index cd80cf42a1..7f4b77882b 100644 --- a/examples/trace-var/trace-var/Cargo.toml +++ b/examples/trace-var/trace-var/Cargo.toml @@ -10,5 +10,5 @@ proc-macro = true [dependencies] syn-next = { path = "../../../", features = ["full", "fold"] } -quote-next = "0.6" -proc-macro2-next = { version = "0.4", features = ["nightly"] } +quote-next = "1.0.0-rc1" +proc-macro2-next = { version = "1.0.0-rc1", features = ["nightly"] } diff --git a/src/lib.rs b/src/lib.rs index d8ab7980d8..015093da5e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,8 +57,8 @@ //! //! ```toml //! [dependencies] -//! syn = "0.15" -//! quote = "0.6" +//! syn-next = "1.0.0-rc1" +//! quote-next = "1.0.0-rc1" //! //! [lib] //! proc-macro = true @@ -235,7 +235,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/0.15.42")] +#![doc(html_root_url = "https://docs.rs/syn-next/1.0.0-rc1")] #![allow(unknown_lints, bare_trait_objects, ellipsis_inclusive_range_patterns)] #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))] #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))]