Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/quote
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.10
Choose a base ref
...
head repository: dtolnay/quote
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.0.14
Choose a head ref
Loading
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
with:
components: rust-src
- run: cargo test
- run: cargo update -Z minimal-versions
- run: cargo build
@@ -46,3 +48,12 @@ jobs:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@clippy
- run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

outdated:
name: Outdated
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: dtolnay/install@cargo-outdated
- run: cargo outdated --exit-code 1
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "quote"
version = "1.0.10" # don't forget to update html_root_url, version in readme for breaking changes
version = "1.0.14" # don't forget to update html_root_url, version in readme for breaking changes
authors = ["David Tolnay <dtolnay@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "Quasi-quoting macro quote!(...)"
@@ -10,20 +10,24 @@ keywords = ["syn"]
categories = ["development-tools::procedural-macro-helpers"]
readme = "README.md"
edition = "2018"
autobenches = false
rust-version = "1.31"

[dependencies]
proc-macro2 = { version = "1.0.20", default-features = false }
proc-macro2 = { version = "1.0.36", default-features = false }

[dev-dependencies]
rustversion = "1.0"
trybuild = { version = "1.0.19", features = ["diff"] }
trybuild = { version = "1.0.52", features = ["diff"] }

[features]
default = ["proc-macro"]
# Disabling the proc-macro feature removes the dynamic library dependency on
# libproc_macro in the rustc compiler.
proc-macro = ["proc-macro2/proc-macro"]

[workspace]
members = ["benches"]

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
20 changes: 20 additions & 0 deletions benches/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "quote-benchmark"
version = "0.0.0"
authors = ["David Tolnay <dtolnay@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2018"
publish = false

[lib]
proc-macro = true
path = "lib.rs"

[[bin]]
name = "quote-benchmark"
path = "main.rs"

[dependencies]
proc-macro2 = "1.0"
quote = { path = ".." }
termcolor = "1.1"
18 changes: 18 additions & 0 deletions benches/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Example output:

<pre>
$ <b>cargo run && cargo run --release</b>

<i>Compiling quote v1.0.10</i>
<i>Compiling quote-benchmark v0.0.0</i>
<kbd><kbd><b>macro in debug mode: 1655 micros</b></kbd></kbd>
<i>Finished dev [unoptimized + debuginfo] target(s) in 4.39s</i>
<i>Running `/git/quote/target/debug/quote-benchmark`</i>
<kbd><kbd><b>non-macro in debug mode: 1205 micros</b></kbd></kbd>
<i>Compiling quote v1.0.10</i>
<i>Compiling quote-benchmark v0.0.0</i>
<kbd><kbd><b>macro in release mode: 1635 micros</b></kbd></kbd>
<i>Finished release [optimized] target(s) in 4.00s</i>
<i>Running `/git/quote/target/release/quote-benchmark`</i>
<kbd><kbd><b>non-macro in release mode: 105 micros</b></kbd></kbd>
</pre>
192 changes: 0 additions & 192 deletions benches/bench.rs

This file was deleted.

Loading