Skip to content

Commit 35877a6

Browse files
authored
Merge pull request dtolnay#400 from dtolnay/fallback
Add proc-macro2-fallback crate containing just the fallback implemention
2 parents 64b4608 + 88bee74 commit 35877a6

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nightly = []
4242
doc-scrape-examples = false
4343

4444
[workspace]
45-
members = ["benches/bench-libproc-macro", "tests/ui"]
45+
members = ["benches/bench-libproc-macro", "fallback", "tests/ui"]
4646

4747
[patch.crates-io]
4848
# Our doc tests depend on quote which depends on proc-macro2. Without this line,

fallback/Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[package]
2+
name = "proc-macro2-fallback"
3+
version = "1.0.66"
4+
authors = ["David Tolnay <[email protected]>"]
5+
edition = "2021"
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/dtolnay/proc-macro2"
8+
9+
[package.metadata.docs.rs]
10+
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"]
11+
targets = ["x86_64-unknown-linux-gnu"]
12+
13+
[dependencies]
14+
unicode-ident = "1"
15+
16+
[dev-dependencies]
17+
proc-macro2 = { version = "1", path = "..", default_features = false }
18+
quote = { version = "1", default_features = false }
19+
20+
[lib]
21+
doc-scrape-examples = false

fallback/src

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../src

0 commit comments

Comments
 (0)